OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..1500
EXAMPLE
When k=4, (k^2+2)/6 = 3 is prime, so 4 is a member of the sequence. since putting k = 0, 1, 2, or 3 does not give a prime, so 4 is the first term.
PROG
(Python)
import sympy
[(k**2+2)/6 for k in range(10**6) if sympy.ntheory.isprime((k**2+2)/6) & ((k**2+2)/6).is_integer()]
CROSSREFS
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Jul 10 2014
STATUS
approved