OFFSET
1,2
COMMENTS
Quasipolynomial of order 2 and degree 5. - Charles R Greathouse IV, Oct 14 2013
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,5,0,-10,0,10,0,-5,0,1).
FORMULA
For even n, a(n) = A000217(n^2) = n^2*(n^2+1)/2; for odd n, a(n) = (n^2 + 1)/2.
EXAMPLE
The sequence is: 1/1, (2+3)*2, (4+5+6)/3, (7+8+9+10)*4, ...
MATHEMATICA
LinearRecurrence[{0, 5, 0, -10, 0, 10, 0, -5, 0, 1}, {1, 10, 5, 136, 13, 666, 25, 2080, 41, 5050}, 50] (* Harvey P. Dale, May 01 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amarnath Murthy, Apr 26 2004
EXTENSIONS
Edited and extended by Max Alekseyev, Apr 26 2009
STATUS
approved