OFFSET
1,2
COMMENTS
Also, odd integers n dividing 2^n + 8.
Some large terms: 5603900696716667005, 446661376165868432471569407934747098747181600670953926245, 1533278864164902082788937853692280620552397221686019535813.
LINKS
Max Alekseyev, Table of n, a(n) for n = 1..781 (all terms below 10^15)
MATHEMATICA
Select[Range[2155*10^4], PowerMod[2, #-3, #]==#-1&]//Quiet (* The program generates the first 10 terms of the sequence. *) (* Harvey P. Dale, Feb 08 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Alekseyev, Sep 13 2022
STATUS
approved