OFFSET
1,1
LINKS
PrimeNet, M4703.
Wikipedia, Lenstra elliptic-curve factorization.
EXAMPLE
2^11 - 1 = 23*89, so the next term after 11 is 23.
MATHEMATICA
a[1] = 11; a[n_] := a[n] = Module[{p = 3}, While[PowerMod[2, a[n - 1], p] != 1, p = NextPrime[p]]; p]; Array[a, 5] (* Amiram Eldar, Aug 19 2021 *)
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
J. Lowell, Aug 19 2021
STATUS
approved