Open-access mathematical research insights
About Contact
Home / Erdos Problems / Problem #479

Problem #479: Is it true that, for all $k\neq 1$, there are infinitely...

Is it true that, for all $k\neq 1$, there are infinitely many $n$ such that $2^n\equiv k\pmod{n}$?

Problem Statement

Is it true that, for all $k\neq 1$, there are infinitely many $n$ such that $2^n\equiv k\pmod{n}$?
Categories: Number Theory

Progress

A conjecture of Graham. It is easy to see that $2^n\not\equiv 1\mod{n}$ for all $n>1$, so the restriction $k\neq 1$ is necessary. Erdős and Graham report that Graham, Lehmer, and Lehmer have proved this for $k=2^i$ for $i\geq 1$, or if $k=-1$, but I cannot find such a paper. Tang has written a short note giving a proof for this case.

As an indication of the difficulty, when $k=3$ the smallest $n$ such that $2^n\equiv 3\pmod{n}$ is $n=4700063497$.

The minimal such $n$ for each $k$ is A036236 in the OEIS.

Source: erdosproblems.com/479 | Last verified: January 15, 2026

Stay Updated

Get weekly digests of new research insights delivered to your inbox.