A162769 a(n) = ((1+sqrt(5))*(4+sqrt(5))^n + (1-sqrt(5))*(4-sqrt(5))^n)/2.
1, 9, 61, 389, 2441, 15249, 95141, 593389, 3700561, 23077209, 143911501, 897442709, 5596515161, 34900251489, 217640345141, 1357219994749, 8463716161441, 52780309349289, 329141597018461, 2052549373305509
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (8,-11).
Programs
-
Magma
Z
:=PolynomialRing(Integers()); N :=NumberField(x^2-5); S:=[ ((1+r)*(4+r)^n+(1-r)*(4-r)^n)/2: n in [0..19] ]; [ Integers()!S[j]: j in [1..#S] ]; // Klaus Brockhaus, Jul 19 2009 -
Mathematica
f[n_] := Block[{s = Sqrt@ 5}, Simplify[((1 + s)(4 + s)^n + (1 - s)(4 - s)^n)/2]]; Array[f, 21, 0] (* Or *) a[n_] := 8 a[n - 1] - 11 a[n - 2]; a[0] = 1; a[1] = 9; Array[a, 22, 0] (* Or *) CoefficientList[Series[(1 + x)/(1 - 8 x + 11 x^2), {x, 0, 21}], x] (* Robert G. Wilson v *)
Formula
a(n) = 8*a(n-1) - 11*a(n-2) for n > 1; a(0) = 1, a(1) = 9.
G.f.: (1+x)/(1-8*x+11*x^2).
Extensions
Edited and extended beyond a(5) by Klaus Brockhaus, Jul 19 2009
Comments