OFFSET
1,4
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
From R. J. Mathar, Sep 15 2009: (Start)
G.f.: x^3*(-1-x-x^5-2*x^7+x^4+x^8)/((x^2+1) * (1+x+x^2) * (x^4-x^2+1) * (x-1)^3). (End)
a(n) = floor((1/12)*(n - 1)*(3*n + 2)). - Ivan Neretin, May 19 2018
MAPLE
seq(floor((1/12)*(n-1)*(3*n+2)), n=1..50); # Muniru A Asiru, May 19 2018
MATHEMATICA
Table[Floor[1/12 (n - 1) (3 n + 2)], {n, 45}] (* Ivan Neretin, May 19 2018 *)
PROG
(GAP) List([1..50], n->Int((1/12)*(n-1)*(3*n+2))); # Muniru A Asiru, May 19 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved