For coprime positive integers n and k , we define ord n ( k ) to be the smallest positive integer such that k ord n ( k ) ≡ 1 ( m o d n ) .
Let L = lcm { ord 3 6 0 9 7 ( 1 ) , ord 3 6 0 9 7 ( 2 ) , ⋯ , ord 3 6 0 9 7 ( 3 6 0 9 6 ) } . Find the last three digits of L + 1 .
Details and assumptions
To put it in words, L is the smallest positive integer which is a multiple of all of the following numbers: ord 3 6 0 9 7 ( 1 ) , ord 3 6 0 9 7 ( 2 ) , ⋯ , ord 3 6 0 9 7 ( 3 6 0 9 6 ) .
You may use the fact that 3 6 0 9 7 is a prime.
Even though 1 0 ≡ 1 ( m o d 3 6 0 9 7 ) , ord 3 6 0 9 7 ( 1 ) = 0 , since the order is defined to be positive. In this case, ord 3 6 0 9 7 ( 1 ) = 1 .
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.
A few typos:
... so L ∣ 3 6 0 9 6 .
It is detailed and best for the beginners in the modern algebra.
What the problem describes is exactly Carmichael's Function λ (Reduced Totient Function) . And λ ( 3 6 0 9 7 ) = ϕ ( 3 6 0 9 7 ) , the Euler Totient function, because 3 6 0 9 7 is a power of an odd prime.
Euler's Totient function ϕ ( 3 6 0 9 7 ) = 3 6 0 9 6 , so L = 3 6 0 9 6 + 1 with last three digits 0 9 7 .
Indeed this all is based on Fermat's little theorem (Saurav). Then you have Euler's Totient function ϕ ( n ) which calculates a number that any order must divide. So, if k j ≡ 1 ( m o d n ) for any k , j ∈ 0 , 1 , . . . , n − 1 , then j must divde ϕ ( n ) . Fermat's little theorem says that ϕ ( n ) = n − 1 if n is prime. Euler's Totient function extends this to any positive number n.
You can find the Totient function by factoring n in primefactors and reduce one of each prime factor: if n = p 1 a 1 ⋅ p 2 a 2 … p j a j , then ϕ ( n ) = ( p 1 − 1 ) ⋅ p 1 a 1 − 1 ⋅ ( p 2 − 1 ) ⋅ p 2 a 2 − 1 … ( p j − 1 ) ⋅ p j a j − 1 .
The problem left is that the Totient function is not the smallest such a number. So, we know that the asked lcm must divide ϕ ( n ) , but does not need to be equal. This is where Carmichael's extension comes in: it defines the reduced totient function that is exactly the smallest number, or lcm, of all orders; the Carmichael's function is a little bit more difficult to compute. Please refer to the wikipedia page for the definition.
Furthermore, Sourav, there is no such thing as overlapping. The Carmichael's function is defined for any n , not just for 36097.
I never knew about Carmichael's Function! Thanks for sharing this solution. :)
I first thought about the modulo multiplication group for 36097. But that was very much time consuming and irritating :P. Suddenly Carmichael's Function striked my mind. And it got solved so easily. :)
what if the carmichael's function had not overlapped with this number? how would we calculate then(assuming it is possible to calculate that), could you please illustrate that. Thanks
Hey, Can we use Fermat's little theorem for solving the problem? a^(p-1) is congruent to 1 mod p . Isn't Carmichael's theorem based on Fermat's work?
From basic group theory, we know that ( Z / p ) × is a cyclic group of order p − 1 for prime p . That is, the generator of the group has order p − 1 . Since the order of every element divides the order of the generator, the least common multiple of all of the orders must be p − 1 .
Read the hints! 36097 is prime, so by FLT anything to the 36096th power is 1 mod 36097. it is known that the order divides 36096 in this case, but it clearly can't be more than 36096 because 36096 works. We must have a primitive root by some theorem that I don't know how to prove, so 36096 is the desired LCM.
We must have a primitive root by some theorem that I don't know how to prove...
Eh? What's the name of the theorem?
Problem Loading...
Note Loading...
Set Loading...
*Claim 1: * If k m ≡ 1 ( m o d n ) for some m ∈ N , then ord n ( k ) must divide m .
*Proof: * Write m = a × ord n ( k ) + b , where a , b ∈ Z + and 0 ≤ b < ord n ( k ) by the division algorithm. Note that ⟹ ⟹ ⟹ ⟹ k m k a × ord n ( k ) + b ( k ord n ( k ) ) a × k b 1 a × k b k b ≡ ≡ ≡ ≡ ≡ 1 ( m o d n ) 1 ( m o d n ) 1 ( m o d n ) 1 ( m o d n ) 1 ( m o d n ) However, b > 0 contradicts the minimality of ord n ( k ) . The only possible value of b , thus, is 0 . It follows that ord n ( k ) divides m . ■
*Claim 2: * Let p be any prime. For all integers n between 2 and p − 2 (inclusive), p ∣ 1 n + 2 n + ⋯ + ( p − 1 ) n .
*Proof: * On the contrary, assume there exists an integer n between 2 and p − 2 such that p doesn't divide 1 n + 2 n + ⋯ + ( p − 1 ) n . WLOG let n be the smallest positive integer satisfying the property. It is well known that for all n , p ∈ N , k = 1 ∑ n ( k n + 1 ) ( 1 k + 2 k + ⋯ + p k ) = ( p + 1 ) n + 1 − 1 . So, k = 1 ∑ n − 1 ( k n + 1 ) ( 1 k + 2 k + ⋯ + p k ) + ( n n + 1 ) ( 1 n + 2 n + ⋯ + p n ) = ( p + 1 ) n + 1 − 1 . By our assumption, p ∣ k = 1 ∑ n − 1 ( k n + 1 ) ( 1 k + 2 k + ⋯ + p k ) , since n is the smallest positive integer such that 1 n + 2 n + ⋯ + p n is a multiple of p . Also note that ( p + 1 ) n + 1 ≡ 1 n + 1 − 1 ≡ 0 ( m o d p ) . It follows that p divides ( n n + 1 ) ( 1 n + 2 n + ⋯ + ( p − 1 ) n ) . But since n ≤ p − 2 , g cd ( n + 1 , p ) = 1 and hence p ∣ 1 n + 2 n + ⋯ + ( p − 1 ) n , which is a contradiction. ■
By FLT, n 3 6 0 9 6 ≡ 1 ( m o d 3 6 0 9 7 ) whenever g cd ( n , 3 6 0 9 7 ) = 1 . By claim 1, it follows that ord 3 6 0 9 7 ( k ) must divide 3 6 0 9 6 for all k coprime to 3 6 0 9 7 , so L ∣ 3 6 0 6 . Now note that 1 L + 2 L + ⋯ + 3 6 0 9 6 L ≡ 3 6 0 9 6 times 1 + 1 + ⋯ + 1 ≡ 3 6 0 9 6 ( m o d 3 6 0 9 7 ) . By claim 2, L cannot be less than 3 6 0 9 6 . Hence L = 3 6 0 9 6 , and L + 1 = 3 6 0 9 7 , whose last three digits are 0 9 7 .