GCD of all ( n 13 n ) (n^{13}-n)

Find the largest positive integer a a such that, for every positive integer n n , a ( n 13 n ) . a\, \Big| \, \big(n^{13}-n\big).


The answer is 2730.

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.

3 solutions

Calvin Lin Staff
Jan 9, 2017

We use the following classification without proof:

For all primes p p , the multiplicative group ( Z / p Z ) × ( \mathbb{Z} / p \mathbb{Z} )^\times is the cyclic group of order p 1 p-1 .

Let p p be any prime. Suppose that p k n ( n 12 1 ) p^k \mid n(n^{12} - 1 ) for all n n . Observe that for n = p n = p , we have p k p ( p 12 1 ) p^k \mid p(p^{12} - 1 ) and thus k 1 k \leq 1 . Suppose that k = 1 k=1 , then applying the above classification, there exists a non-zero primitive element d d such that the smallest solution to d s 1 ( m o d p ) d^{s} \equiv 1 \pmod{p} is s = p 1 s = p-1 . Since we have d 12 1 ( m o d p ) d^{12} \equiv 1 \pmod{p} , let 12 = s q + r 12 = s q + r with 0 r < s 0 \leq r < s , then 1 d 12 d s q + r d r ( m o d p ) 1 \equiv d^{12} \equiv d^{sq +r} \equiv d^r \pmod{p} . Thus, r = 0 r = 0 and so s 12 s \mid 12 . This implies that a necessary condition for p k a p^k \mid a is 1) k = 1 k = 1 and 2) p 1 12 p-1 \mid 12 . Hence, a p 1 12 p \displaystyle a\mid \prod_{p-1 \mid 12 } p .

Conversely, if p p is any prime such that p 1 12 p - 1 \mid 12 , then by Fermat's little theorem we know that n p n ( m o d p ) n^p \equiv n \pmod{p} for all n n . Hence, with ( p 1 ) q = 12 (p-1)q = 12 , we get that n ( p 1 ) q + 1 n ( m o d p ) n^{(p-1)q +1 } \equiv n \pmod{p} for all n n . Thus, a sufficient condition for p k a p^k \mid a is 1) k = 1 k = 1 and 2) p 1 12 p-1 \mid 12 . This tells us that p 1 12 p a \displaystyle \prod_{p-1 \mid 12 } p \mid a .

Hence, we conclude that a = p 1 12 p \displaystyle a = \prod_{p-1 \mid 12 } p .


The above proof generalizes to showing that the largest positive integer a a such that for every positive integer n n , a n t n a \mid n^t - n is given by a = p 1 t 1 p \displaystyle a = \prod_{p-1 \mid t-1 } p .

Your first "This tells us that", shouldn't it be p 1 12 p a \displaystyle \prod_{p-1 \mid 12} p \mid a ?

Muhammad Rasel Parvej - 4 years, 5 months ago

Log in to reply

No, no; you're right. I just messed it up in my brain. Now it's clear.

Muhammad Rasel Parvej - 4 years, 5 months ago

But a typo I think in the generalization; it must be a = ( p 1 ) ( t 1 ) p \displaystyle a= \prod_{(p-1)\mid (t-1)} p .

Muhammad Rasel Parvej - 4 years, 5 months ago

Log in to reply

Thanks. I believe I'm done fixing a bunch of stuff. Can you review it again?

Calvin Lin Staff - 4 years, 5 months ago

Log in to reply

Now, all okay. Thank you!

In previous write-up, I liked the abstract element symbol 1 1 now replaced by d d ; but now I see it was ambiguous with our number 1 1 . And 1 s 1 s = p 1 1^s\equiv 1 \implies s=p-1 was wrong. It should have been s 1 = p 1 s-1=p-1 .

Muhammad Rasel Parvej - 4 years, 5 months ago

Log in to reply

@Muhammad Rasel Parvej It's a cyclic group of order p 1 p-1 , so there is an element of order p 1 p - 1 .

I've elaborated on why that means s 12 s \mid 12 .

Calvin Lin Staff - 4 years, 5 months ago

Log in to reply

@Calvin Lin A helpful one for elementary readers!

Muhammad Rasel Parvej - 4 years, 5 months ago
  • Let's first see which prime p p divide n 13 n n^{13}-n for every n n . When for some n n , p n p \mid n , then obviously p p divides n 13 n n^{13}-n . So, let's concentrate when p n 13 n p \mid n^{13}-n for every n n with p ∤ n p \not \mid n . That's where comes Fermat's Little Theorem .

  • But n 13 n ( m o d p ) n^{13} \equiv n \pmod{p} for every n n with p ∤ a p \not \mid a WHEN 13 1 ( m o d ( p 1 ) ) 12 0 ( m o d ( p 1 ) ) ( p 1 ) 12 13 \equiv 1 \pmod{(p-1)} \iff 12 \equiv 0 \pmod{(p-1)} \iff (p-1)\mid 12 . The set of possible values of ( p 1 ) (p-1) is { 1 , 2 , 3 , 4 , 6 , 12 } \{1,2,3,4,6,12\} , yielding the set of all such p p { 2 , 3 , 5 , 7 , 13 } \{2,3,5,7,13\} . Now we have, 2 × 3 × 5 × 7 × 13 = 2730 2\times 3 \times 5 \times 7 \times 13= 2730 . So, 2730 n 13 n 2730 \mid n^{13}-n for every n n . So, is this the largest a a ?

  • We see, ( p 1 ) 12 (p-1)\mid 12 is a sufficient condition for n 13 n ( m o d p ) n^{13} \equiv n \pmod{p} for every n n with p ∤ a p \not \mid a . But is it also a necessary condition? Yes, it's also a necessary condition. I refer to Primitive Roots wiki here. For every prime p p , there exists at least one number n n whose multiplicative order (or equivalently speaking, minimum exponent e e such that n e 1 ( m o d p ) n^e \equiv 1 \pmod{p} ) modulo p p is ϕ ( p ) = p 1 \phi(p)=p-1 . Thus, the condition p 1 12 p-1 \mid 12 is necessary such that n 13 n ( m o d p ) n^{13} \equiv n \pmod{p} works for EVERY n n with p ∤ a p \not \mid a . Hence, { 2 , 3 , 5 , 7 , 13 } \{2,3,5,7,13\} is the complete set of such p p .

  • Now we turn to numerical evidence. You can verify 2 13 2 2730 = 3 \dfrac{2^{13}-2}{2730}=3 and 3 13 3 2730 = 584 \dfrac{3^{13}-3}{2730}=584 . Since g c d ( 3 , 584 ) = 1 gcd(3,584)=1 , we can deduce that 2730 \boxed{2730} is the largest a a . \blacksquare


Remark : If we did approach the problem with "Let's first see which prime power p e p^e (with e 1 e \geq 1 ) divide n 13 n n^{13}-n for every n n " with the help of Euler's Theorem instead of "Let's first see which prime p p divide n 13 n n^{13}-n for every n n ", then we would not have to rely on Numerical Evidence.

Based on my interpretation of your current understanding, the following writeup would make much more sense.

  1. Looking at small n=2, 3, we see that the answer must divide 2730.
  2. We now show that 2730 | n^13 - n by proving for each prime.

Calvin Lin Staff - 4 years, 5 months ago

This solution is incomplete.. Let me explain why.

The condition of p 1 12 p-1\mid 12 is a sufficient condition. As you explained, if p 1 12 p-1 \mid 12 , then FLT gives us n 12 1 ( m o d p ) n^{12} \equiv 1 \pmod{p} .

However, is this condition necessary? Why can't there be another prime such that n 12 1 ( m o d p ) n^{12} \equiv 1 \pmod{p } for all coprime n n but p 1 ∤ 12 p-1 \not \mid 12 ?

Calvin Lin Staff - 4 years, 5 months ago

Log in to reply

Thank you. I'm improving the solution.

Muhammad Rasel Parvej - 4 years, 5 months ago

Now I believe it's complete. Thanks to @Patrick Corn . And to you.

Muhammad Rasel Parvej - 4 years, 5 months ago

I don't think you necessarily need anything about primitive roots: once you've established that 2 , 3 , 5 , 7 , 13 2,3,5,7,13 all work, so that their product 2730 2730 does, the "Numerical Evidence" is enough to show that 2730 2730 is the answer.

Patrick Corn - 4 years, 5 months ago

Log in to reply

I agree to "I don't think you necessarily need anything about primitive roots".

But I think the part of Primitive Roots minimize expectation form Numerical Evidence. Now we rely on Numerical Evidence only to see if the primes we already listed occurs in the answer with exponent more than 1 1 .

Before, we also have to rely for confirmation if no other prime, except those we listed already, occurs in the answer.

I think it's a positive achievement.

Muhammad Rasel Parvej - 4 years, 5 months ago
Nikhil Vijay
Jan 15, 2017

By Euler's theorem, we have that each of the primes 2 , 3 , 5 , 7 , 13 2,3,5,7,13 divides 12 12 so for each prime p p stated before, we have n 13 n 0 ( m o d p ) n^{13}-n\equiv 0 \pmod{p} . Furthermore, if p p is any prime, then p 2 p^2 does not divide p 13 p p^{13}-p in this case. Thus, the largest positive integer a a which divides all n 13 n n^{13}-n or, the GCD of all elements of form n 13 n n^{13}-n is ( 2 3 5 7 13 ) = 2730 (2\cdot 3\cdot 5\cdot 7\cdot 13)=2730

That's a good start. How do we know that no other primes would work?

Calvin Lin Staff - 4 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...