OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..929 (terms 1..58 from Harvey P. Dale)
OEIS Wiki, 2^n mod n
EXAMPLE
2^4 + 8 = 24 is divisible by 4. Thus 4 is a term of this sequence.
2^5 + 8 = 40 is divisible by 5. Thus 5 is a term of this sequence.
MAPLE
select(n -> 2 &^ n + 8 mod n = 0, [$1..10^6]); # Robert Israel, Jul 18 2014
MATHEMATICA
Join[Select[Range[7], Divisible[2^#+8, #]&], Select[Range[4000000], Abs[ PowerMod[ 2, #, #]-#]==8&]] (* Harvey P. Dale, May 25 2016 *)
PROG
(PARI) for(n=1, 10^9, if(Mod(2, n)^n==Mod(-8, n), print1(n, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Jul 17 2014
STATUS
approved