I try solve this problem I know that, I can do that like
for i in range(1,input()): print int(str(i)*i)
It works, but I can't use strings, so i have idea to do that like
for i in range(1,input()): sum+=10**i print i*((1+sum)%10**i)
for i=1 1*(1+10)%10, for i=2 2*((1+110)%100), for i=3 3*((1+1110)%1000) etc.
But it doesn't work and have more than 2 lines :( Anyone have idea how to solve this problem ? Generally i know how to solve this problem mathematic but i don't know how to do that in python ( no use string and write no more than 2 lines)