OFFSET
1,1
COMMENTS
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..1192
Kin Y. Li et al., Solution to Problem 323, Mathematical Excalibur 14(2), 2009, p. 3.
FORMULA
a(n) = A296369(n) + 1.
MATHEMATICA
Do[If[PowerMod[2, n, n-1]==n-2, Print[n]], {n, 2, 12900000}]
PROG
(Python)
A055685_list = [n for n in range(2, 10**6) if pow(2, n, n-1) == n-2] # Chai Wah Wu, Nov 04 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jun 09 2000
EXTENSIONS
Edited by Max Alekseyev, Oct 11 2012
Incorrect term 4285390 removed by Chai Wah Wu, Nov 04 2019
STATUS
approved