MathLabs

Problem 3

Determine all integers n>1n>1 such that (2n+1)/n2(2^n+1)/n^2 is an integer.
Step 4 of 4: Exclude every second prime factor
n=3t,q∣t,q>3⟹w∣n,w<q,w∈{1,3}n=3t,\quad q\mid t,\quad q>3\Longrightarrow w\mid n,\quad w<q,\quad w\in\{1,3\}
Detailed analysis

If n>3n>3, write n=3tn=3t and let qq be the smallest prime divisor of tt, so q>3q>3. Repeating the exponent argument modulo qq gives a least ww with 2w≡−1(modq)2^w\equiv-1\pmod q, where ww divides nn and is less than qq. Since 3 occurs only once in nn, ww is 1 or 3; then qq divides 3 or q∣(23+1)=9q\mid(2^3+1)=9, contradicting q>3q>3. Finally n=3n=3 works because (23+1)/32=1(2^3+1)/3^2=1.