Maths Olympiad Prep

Library / /165 of 520

Number theory Difficulty 6.1 National olympiad Prove it

Let p>7p>7 be a prime number that leaves a remainder of 1 when divided by 6. Set m=2p1m=2^{p}-1. Prove that 2m112^{m-1}-1 is divisible by 127m127 m without any remainder.

Solution

The solution consists of three steps:

1. 2m112^{m-1}-1 is divisible by 127.
2. 2m112^{m-1}-1 is divisible by mm.
3. 127 and mm are coprime.

For 1: It holds that 261mod72^{6} \equiv 1 \bmod 7. From p1mod6p \equiv 1 \bmod 6 it follows that 2p2mod72^{p} \equiv 2 \bmod 7, thus 7m17 \mid m-1. With 271mod1272^{7} \equiv 1 \bmod 127 it follows that 2m11mod1272^{m-1} \equiv 1 \bmod 127.
For 2: It holds that 2p2modp2^{p} \equiv 2 \bmod p (Fermat's little theorem), i.e., pm1p \mid m-1. From 2p1modm2^{p} \equiv 1 \bmod m it follows that 2m11modm2^{m-1} \equiv 1 \bmod m.
For 3: It holds that 2p1mod1272^{p} \equiv 1 \bmod 127 if and only if pp is divisible by 7 (write p=7k+rp=7 k+r with 0r<70 \leq r<7). If r>0r>0, this is not the case, so mm is not divisible by 127, and since 127 is a prime number, 127 and mm are coprime.
Remarks: The relationship gcd(2a1,2b1)=2gcd(a,b)1\operatorname{gcd}\left(2^{a}-1,2^{b}-1\right)=2^{\operatorname{gcd}(a, b)}-1 allows for a shortening of the solution. Instead of congruence arithmetic, the divisibility statement abanbna-b \mid a^{n}-b^{n} can be used in some cases. Some participants used an incorrect version of the Euler-Fermat theorem: it states aϕ(m)1modma^{\phi(m)} \equiv 1 \bmod m for gcd(a,m)=1\operatorname{gcd}(a, m)=1, but only for mm a prime number does ϕ(m)=m1\phi(m)=m-1 hold.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.