OFFSET
1,2
COMMENTS
No other terms below 10^15. Some large terms: 37367159696063084325121, 1637537600494693555095121, 50692913747901869910332539, 407*(2^407+5)/1125038874668278099 (108 digits). - Max Alekseyev, Sep 22 2016
LINKS
OEIS Wiki, 2^n mod n
EXAMPLE
2^7 + 5 = 133 is divisible by 7. Thus 7 is a term of this sequence.
MATHEMATICA
Select[Range[10^5], Divisible[2^# + 5, #] &] (* Robert Price, Oct 12 2018 *)
PROG
(PARI)
for(n=1, 10^9, if(Mod(2, n)^n==Mod(-5, n), print1(n, ", ")))
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Derek Orr, Jul 17 2014
EXTENSIONS
a(10)-a(13) from Lars Blomberg, Nov 05 2014
a(14)-a(16) from Max Alekseyev, Oct 09 2016
STATUS
approved