OFFSET
0,4
COMMENTS
Exponents in Hankel transform A171451.
For n>=2 a(n) is the smallest addend in the sums of n terms where all the natural numbers are used once 1+2=3, 4+5+6=15, 7+8+9+10=34, 11+12+13+14+16=66, 17+18+19+20+21+22=117 23+24+25+26+27+28+29=182, 30+31+32+33+35+36+37+38=272. - Anton Zakharov, Aug 28 2016
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
FORMULA
G.f.: (1+2x)/((1-x)^3*(1+x+x^2));
a(n) = (3n^2-n-2)/6 + sqrt(3)*cos(2*Pi*n/3+Pi/6)/9 + sin(2*Pi*n/3+Pi/6)/3.
PROG
(PARI) a(n)=n*(3*n-1)\6 \\ Charles R Greathouse IV, Aug 28 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Dec 09 2009
STATUS
approved