If f(N) be a function used to define a string of 1's repeated such that f(1)=1, f(2)=11, .... and so on..... find the smallest (N) such that, f(N) is divisible by 2011.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
@Shenal Kotuwewatta - Care to share, how you solved it?
@Sharky Kesa @David Vaccaro @Jon Haussmann - Any idea of a nt solution??
Log in to reply
Note that f ( n ) = 9 1 0 n − 1 . Thus, we want to find the smallest positive integer n such that 1 0 n ≡ 1 ( m o d 2 0 1 1 ) . In number theory, this number is known as the order of 10 modulo 2011.
In general, for any relatively prime positive integers a and m , the order of a modulo m divides ϕ ( m ) . Thus, the order of 10 modulo 2011 must divide ϕ ( 2 0 1 1 ) = 2 0 1 0 . We can then check 1 0 d ( m o d 2 0 1 1 ) for each divisor d of 2010. The smallest divisor that returns 1 modulo 2011 is 670.
Log in to reply
Thank you so much Jon Haussman for this :D
Did the same!
give a proper mathematical method and solution to the problem. The solution you posted is a way of finding the answer by trial and error. Not a method of solving it..
Problem Loading...
Note Loading...
Set Loading...
Done this with python:
This gives 670