OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
a(7) = 8 because the 7th pentagonal number is 70, which has 8 divisors: 1,2,5,7,10,14,35,70.
PROG
(PARI)
pg(m, n) = (n^2*(m-2)-n*(m-4))/2 \\ n-th m-gonal number
vector(100, n, numdiv(pg(5, n)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Colin Barker, Sep 13 2016
STATUS
approved