OFFSET
2,1
LINKS
Colin Barker, Table of n, a(n) for n = 2..1000
EXAMPLE
a(5) = 5 because A060354(5) = 35 = 5 * 7.
MATHEMATICA
Table[FactorInteger[PolygonalNumber[n, n]][[1, 1]], {n, 2, 90}] (* Harvey P. Dale, Feb 26 2022 *)
PROG
(PARI)
pg(m, n) = (n^2*(m-2)-n*(m-4))/2 \\ n-th m-gonal number
spf(m) = factorint(m)[1, 1] \\ Smallest prime factor
a(n) = spf(pg(n, n))
vector(100, n, n++; a(n))
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Apr 04 2016
STATUS
approved