A074516 a(n) = 1^n + 5^n + 6^n.
3, 12, 62, 342, 1922, 10902, 62282, 358062, 2070242, 12030822, 70231802, 411625182, 2420922962, 14281397142, 84467679722, 500702562702, 2973697798082, 17689598897862, 105374653934042, 628433226338622
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (12,-41,30).
Programs
-
Magma
[5^n+6^n+1^n: n in [0..30]]; // Vincenzo Librandi, Mar 24 2013
-
Maple
A074516:=n->1^n+5^n+6^n: seq(A074516(n), n=0..30); # Wesley Ivan Hurt, Jan 27 2017
-
Mathematica
Table[1^n + 5^n + 6^n, {n, 0, 20}] LinearRecurrence[{12,-41,30},{3,12,62},20] (* Harvey P. Dale, Apr 06 2018 *)
Formula
G.f.: 1/(1-x)+1/(1-5*x)+1/(1-6*x). E.g.f.: e^x+e^(5*x)+e^(6*x). [Mohammad K. Azarian, Dec 26 2008]
a(n) = 11*a(n-1) - 30*a(n-2) + 20, n>1. [Gary Detlefs, Jun 21 2010]