(MAGMAMagma) Z<x>:=PolynomialRing(Integers()); N<r>:=NumberField(x^2-2); S:=[ ((3+r)*(4+r)^n+(3-r)*(4-r)^n)/2: n in [0..20] ]; [ Integers()!S[j]: j in [1..#S] ]; // Klaus Brockhaus, Jul 01 2009
(MAGMAMagma) Z<x>:=PolynomialRing(Integers()); N<r>:=NumberField(x^2-2); S:=[ ((3+r)*(4+r)^n+(3-r)*(4-r)^n)/2: n in [0..20] ]; [ Integers()!S[j]: j in [1..#S] ]; // Klaus Brockhaus, Jul 01 2009
proposed
approved
editing
proposed
a(n) = ((3+sqrt(2))*(4+sqrt(2))^n + (3-sqrt(2))*(4-sqrt(2))^n)/2.
(PARI) x='x+O('x^30); Vec((3-10*x)/(1-8*x+14*x^2)) \\ G. C. Greubel, Aug 17 2018
approved
editing
proposed
approved
editing
proposed
From Emeric Deutsch, Jun 28 2009: (Start)
G.f.=(3-10x)/(1-8x+14x^2).
Recursive relation: a(n) = 8a(n-1) - 14a(n-2); a(0)=3, a(1)=14.
(End)
proposed
editing
editing
proposed
Muniru A Asiru, <a href="/A161939/b161939.txt">Table of n, a(n) for n = 0..280</a>
(GAP) a := [3, 14];; for n in [3..10^2] do a[n] := 8*a[n-1] - 14*a[n-2]; od; a; # Muniru A Asiru, Feb 02 2018
proposed
editing
editing
proposed