A245552 G.f.: Sum_{n>=0} (2*n+1)*x^(n^2+n+1).
0, 1, 0, 3, 0, 0, 0, 5, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19
Offset: 0
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 0..10101
Programs
-
Mathematica
Join[{0},Flatten[Table[Join[{n,PadRight[{},n,0]}],{n,1,19,2}]]] (* Harvey P. Dale, Dec 14 2014 *)
-
PARI
A198954(n) = { my(m); if(issquare(8*n + 1, &m), m, 0) }; \\ This function from Michael Somos A245552(n) = if(!(n%2),0,A198954((n-1)/2)); \\ After Robert Israel's formula - Antti Karttunen, Jul 24 2017
Formula
a(2*n+1) = A198954(n), a(2*n) = 0.- Robert Israel, Aug 05 2014
Comments