A074502 a(n) = 1^n + 2^n + 6^n.
3, 9, 41, 225, 1313, 7809, 46721, 280065, 1679873, 10078209, 60467201, 362799105, 2176786433, 13060702209, 78364180481, 470185017345, 2821109972993, 16926659575809, 101559956930561, 609359740534785, 3656158441111553
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (9,-20,12).
Programs
-
Mathematica
Table[1^n + 2^n + 6^n, {n, 0, 20}] LinearRecurrence[{9,-20,12},{3,9,41},30] (* Harvey P. Dale, Aug 15 2017 *)
Formula
G.f.: 1/(1-x)+1/(1-2*x)+1/(1-6*x). E.g.f.: e^x+e^(2*x)+e^(6*x). [Mohammad K. Azarian, Dec 26 2008]
a(n) = 8*a(n-1) - 12*a(n-2) + 5, n> 1. [Gary Detlefs, Jun 21 2010]
Comments