OFFSET
1,1
COMMENTS
All terms are prime except a(1) = 4. All prime terms are listed in A000978. - Alexander Adamchuk, Oct 03 2006
FORMULA
a(n) = A000978(n-1) for n >= 3. - Alexander Adamchuk, Oct 03 2006
PROG
(PARI) is(n)=ispseudoprime((2^n - (-1)^n) / 3) \\ Charles R Greathouse IV, Apr 28 2015
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Paul Barry, May 09 2005
EXTENSIONS
More terms from Alexander Adamchuk, Oct 03 2006
a(41)-a(42) from Bill McEachen, Aug 28 2024
STATUS
approved