A074501 a(n) = 1^n + 2^n + 5^n.
3, 8, 30, 134, 642, 3158, 15690, 78254, 390882, 1953638, 9766650, 48830174, 244144722, 1220711318, 6103532010, 30517610894, 152587956162, 762939584198, 3814697527770, 19073486852414, 95367432689202, 476837160300278
Offset: 0
Links
- Jason Bard, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (8,-17,10).
Programs
-
Mathematica
Table[1^n + 2^n + 5^n, {n, 0, 24}]
-
PARI
a(n)=1+2^n+5^n \\ Charles R Greathouse IV, Jun 10 2011
Formula
From Mohammad K. Azarian, Dec 26 2008: (Start)
G.f.: 1/(1-x) + 1/(1-2*x) + 1/(1-5*x).
E.g.f.: e^x + e^(2*x) + e^(5*x). (End)
a(n) = 7*a(n-1) - 10*a(n-2) + 4 with a(0)=3, a(1)=8. - Vincenzo Librandi, Jul 21 2010