OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
a(6) = 8 because the 6th hexagonal number is 66, which has 8 divisors: 1,2,3,6,11,22,33,66.
PROG
(PARI)
pg(m, n) = (n^2*(m-2)-n*(m-4))/2 \\ n-th m-gonal number
vector(100, n, numdiv(pg(6, n)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Sep 13 2016
STATUS
approved