OFFSET
1,2
COMMENTS
The answer to the question is no: 2^(28-1) mod 28 = 4^(28-1) mod 28 = 8. Also, any base-2 Fermat pseudoprime (A001567) is a term of this sequence. - D. S. McNeil, Dec 07 2010
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Range[200], PowerMod[2, #-1, #]==PowerMod[4, #-1, #]&] (* Harvey P. Dale, Nov 10 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Dec 07 2010
EXTENSIONS
Extended by D. S. McNeil, Dec 07 2010
STATUS
approved