Quote:
Originally Posted by implex just find out remainders on 10,100 1000
we will be done !
1849.43=49.43=2007!!
we r done with the first option itself |
@Ankaj: I don't think cyclicity is the way to go here. At least I don't see a way. You could give it a try if you know the cyclicity for cubes... Implex seems to have a nice approach...
@Raghav: My sol. is the longest possible. I could have done it through options but I wanted to try out the long method. Cannot type all of it now. Probably you guys could hold on for a couple of hours? I'll post it then...
I didn't quite get your approach. If I take N = 7543, and div. by 10 I get rem(3), by 100 get rem(43) and b 1000 rem(543). then what. Could you elaborate?