OFFSET
1,1
COMMENTS
From little Fermat theorem, if (n+1) is prime (n+1) divides 3^n-2^n
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..200
MATHEMATICA
Select[Range[25000], CompositeQ[#+1]&&Mod[3^#-2^#, #+1]==0&] (* Harvey P. Dale, Jul 15 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Mar 08 2002
STATUS
approved