OFFSET
0,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
T. A. Gulliver, Divisibility of sums of powers of odd integers, Int. Math. For. 5 (2010) 3059-3066, eq. (6).
D. Suprijanto, I. W. Suwarno, Observation on Sums of Powers of Integers Divisible by 3k-1, Applied Mathematical Sciences, Vol. 8, 2014, no. 45, 2211 - 2217.
Index entries for linear recurrences with constant coefficients, signature (9,-23,15).
FORMULA
a(n) = 8*a(n-1) - 15*a(n-2) + 8.
G.f.: 1/(1-x)+1/(1-3*x)+1/(1-5*x). E.g.f.: e^x+e^(3*x)+e^(5*x). [Mohammad K. Azarian, Dec 26 2008]
MATHEMATICA
Table[1^n + 3^n + 5^n, {n, 0, 22}]
LinearRecurrence[{9, -23, 15}, {3, 9, 35}, 30] (* Harvey P. Dale, Mar 02 2022 *)
PROG
(PARI) a(n) = 1 + 3^n + 5^n; \\ Michel Marcus, Aug 07 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Aug 23 2002
STATUS
approved