OFFSET
1,2
COMMENTS
The numbers are called Curzon numbers by Tattersall (p. 85, exercise 43).
REFERENCES
James J. Tattersall, Elementary Number Theory in Nine Chapters, Second Edition, Cambridge University Press, 2005, p. 85.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Giovanni Resta, Curzon numbers, Numbers Aplenty.
EXAMPLE
5 is in the list since 2*5 + 1 = 11 divides 2^5 + 1 = 33.
MATHEMATICA
Select[Range[300], PowerMod[2, #, 2 # + 1] == 2 # &] (* Amiram Eldar, Oct 13 2020 *)
PROG
(PARI) for(n=0, 10^3, my(m=2*n+1); if( Mod(2, m)^n==Mod(-1, m), print1(n, ", ") ) ); \\ Joerg Arndt, Apr 08 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Jayanta Basu, Apr 07 2013
STATUS
approved