OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
T. A. Gulliver, Divisibility of sums of powers of odd integers, Int. Math. For. 5 (2010) 3059-3066, eq. 6.
Index entries for linear recurrences with constant coefficients, signature (25, -230, 950, -1689, 945).
FORMULA
a(n) = 24*a(n-1) - 206*a(n-2) + 744*a(n-3) - 945*a(n-4) + 384.
G.f.: -(5 - 100*x + 690*x^2 - 1900*x^3 + 1689*x^4)/((-1+x)*(3*x-1)*(9*x-1)*(7*x-1)*(5*x-1)). - R. J. Mathar, Nov 14 2007
EXAMPLE
a(3)=165 because 1^2 + 3^2 + 5^2 + 7^2 + 9^2 = 165.
MATHEMATICA
Table[1^n+3^n+5^n+7^n+9^n, {n, 0, 30}]
PROG
(Magma) [1^n + 3^n + 5^n + 7^n + 9^n: n in [0..20]]; // Vincenzo Librandi, Jun 20 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Oct 01 2007
STATUS
approved