OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (14,-45).
FORMULA
a(n) = ((7+sqrt4)^n - (7-sqrt4)^n)/4. Offset 1. a(3)=151. - Al Hakanson (hawkuu(AT)gmail.com), Dec 31 2008
a(n) = 14*a(n-1) - 45*a(n-2). - Philippe Deléham, Jan 01 2009
a(0)=1, a(n) = 9*a(n-1) + 5^n. - Vincenzo Librandi, Feb 09 2011
From G. C. Greubel, Nov 09 2024: (Start)
a(n) = (9^(n+1) - 5^(n+1))/4.
E.g.f.: (1/4)*(9*exp(9*x) - 5*exp(5*x)). (End)
G.f.: (1 - 32*x^18)/(1 - 14*x + 45*x^2). - Charles R Greathouse IV, May 25 2026
MATHEMATICA
Table[(9^(n+1) - 5^(n+1))/4, {n, 0, 30}] (* Vladimir Joseph Stephan Orlovsky, Feb 01 2011 *)
PROG
(Magma) [(9^(n+1) - 5^(n+1))/4: n in [0..30]]; // G. C. Greubel, Nov 09 2024
(SageMath)
def A016163(n): return (9^(n+1) - 5^(n+1))/4
[A016163(n) for n in range(31)] # G. C. Greubel, Nov 09 2024
(PARI) a(n)=(9^(n+1)-5^(n+1))/4 \\ Charles R Greathouse IV, May 25 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
