OFFSET
1,2
FORMULA
G.f.: (Sum_{k>0} x^(k^2 + k - 1) / (1 - x^(2*k - 1))^2) / (Sum_{k>0} x^(k*(k - 1))). - Michael Somos, Jul 05 2015
EXAMPLE
G.f. = x + 2*x^2 + 2*x^3 + 2*x^4 + 4*x^5 + 4*x^6 + 2*x^7 + 4*x^8 + 5*x^9 + ...
PROG
(PARI) {a(n) = my(A); if( n<1, 0, n--; A = x * O(x^n); polcoeff( sum(k=1, sqrtint(4*n + 9)\2, x^(k^2 + k - 2) / (1 - x^(2*k - 1))^2, A) / sum(k=1, sqrtint(4*n + 1)\2 + 1, x^(k^2 - k), A), n))}; /* Michael Somos, Jul 05 2015 */
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 14 2006
STATUS
approved