OFFSET
1,1
COMMENTS
Primes in A056105. - Omar E. Pol, Apr 26 2017
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[PolygonalNumber[8, Range[300]]+1, PrimeQ] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 22 2017 *)
PROG
(PARI) pg(m, n) = (n^2*(m-2)-n*(m-4))/2 \\ n-th m-gonal number
maxk=300; L=List(); for(k=1, maxk, if(isprime(p=pg(8, k) + 1), listput(L, p))); Vec(L)
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Apr 26 2017
STATUS
approved