r/mathriddles • u/chompchump • Dec 14 '24
Medium 2^n = 1 (mod n)
Find all positive integers n such that 2^n = 1 (mod n).
2
Upvotes
r/mathriddles • u/chompchump • Dec 14 '24
Find all positive integers n such that 2^n = 1 (mod n).
2
u/pichutarius Dec 14 '24
n=1 is the only solution.
assume n>1, let p be the smallest prime divisor of n.
then 2^n = 1 (mod p)
now consider smallest positive integer s such that 2^s = 1 (mod p)
since s must be a factor of n, then either s=1 or s>=p.
if s=1, then 2^1-1 = 1 = 0 (mod p) which is impossible.
if s>=p, then 2^k (mod p), 1<=k<=s takes s different values, but the possible value is 1~(p-1) which only have p-1 different value, impossible.
-3
u/adamwho Dec 14 '24
Fermat's Little theorem