A192232
Constant term of the reduction of n-th Fibonacci polynomial by x^2 -> x+1. (See Comments.)
Original entry on oeis.org
1, 0, 2, 1, 6, 7, 22, 36, 89, 168, 377, 756, 1630, 3353, 7110, 14783, 31130, 65016, 136513, 285648, 599041, 1254456, 2629418, 5508097, 11542854, 24183271, 50674318, 106173180, 222470009, 466131960, 976694489, 2046447180, 4287928678, 8984443769, 18825088134
Offset: 1
The first four Fibonacci polynomials and their reductions by x^2->x+1 are shown here:
F1(x)=1 -> 1 + 0x
F2(x)=x -> 0 + 1x
F3(x)=x^2+1 -> 2+1x
F4(x)=x^3+2x -> 1+4x
F5(x)=x^4+3x^2+1 -> (x+1)^2+3(x+1)+1 -> 6+6x.
From these, read A192232=(1,0,1,1,6,...) and A112576=(0,1,1,4,6,...).
-
q[x_] := x + 1;
reductionRules = {x^y_?EvenQ -> q[x]^(y/2), x^y_?OddQ -> x q[x]^((y - 1)/2)};
t = Table[FixedPoint[Expand[#1 /. reductionRules] &, Fibonacci[n, x]], {n, 1, 40}];
Table[Coefficient[Part[t, n], x, 0], {n, 1, 40}]
(* A192232 *)
Table[Coefficient[Part[t, n], x, 1], {n, 1, 40}]
(* A112576 *)
(* Peter J. C. Moses, Jun 25 2011 *)
LinearRecurrence[{1, 3, -1, -1}, {1, 0, 2, 1}, 60] (* Vladimir Joseph Stephan Orlovsky, Feb 08 2012 *)
-
Vec((1-x-x^2)/(1-x-3*x^2+x^3+x^4)+O(x^99)) \\ Charles R Greathouse IV, Jan 08 2013
A192237
a(n) = 2*(a(n-1) + a(n-2) + a(n-3)) - a(n-4) for n >= 4, with initial terms 0,0,0,1.
Original entry on oeis.org
0, 0, 0, 1, 2, 6, 18, 51, 148, 428, 1236, 3573, 10326, 29842, 86246, 249255, 720360, 2081880, 6016744, 17388713, 50254314, 145237662, 419744634, 1213084507, 3505879292, 10132179204, 29282541372, 84628115229, 244579792318, 706848718634, 2042830710990, 5903890328655, 17062559724240, 49311712809136, 142513495013072
Offset: 0
With a different offset, equals (
A192236)/2.
-
a:=[0,0,0,1];; for n in [5..40] do a[n]:=2*a[n-1]+2*a[n-2]+2*a[n-3] -a[n-4]; od; a; # G. C. Greubel, Jul 30 2019
-
I:=[0,0,0,1]; [n le 4 select I[n] else 2*(Self(n-1)+Self(n-2) +Self(n-3))-Self(n-4): n in [1..40]]; // Vincenzo Librandi, Sep 06 2018
-
q[x_]:= x + 1;
reductionRules = {x^y_?EvenQ -> q[x]^(y/2), x^y_?OddQ -> x q[x]^((y - 1)/2)};
t = Table[Last[Most[FixedPointList[Expand[#1 /. reductionRules] &, ChebyshevU[n, x]]]], {n, 1, 40}];
Table[Coefficient[Part[t, n], x, 0], {n, 1, 40}] (* A192235 *)
Table[Coefficient[Part[t, n], x, 1], {n, 1, 40}] (* A192236 *)
Table[Coefficient[Part[t, n]/2, x, 1], {n, 1, 40}] (* A192237 *)
(* by Peter J. C. Moses, Jun 25 2011 *)
LinearRecurrence[{2,2,2,-1}, {0,0,0,1}, 40] (* Vincenzo Librandi, Sep 06 2018 *)
-
concat(vector(3), Vec(x^3/(1-2*x-2*x^2-2*x^3+x^4) + O(x^40))) \\ Colin Barker, Sep 06 2018
-
(x^3/(1-2*x-2*x^2-2*x^3+x^4)).series(x, 40).coefficients(x, sparse=False) # G. C. Greubel, Jul 30 2019
Entry revised (with new offset and initial terms) by
N. J. A. Sloane, Sep 03 2018
A192236
Coefficient of x in the reduction of the n-th 2nd-kind Chebyshev polynomial by x^2 -> x+1.
Original entry on oeis.org
2, 4, 12, 36, 102, 296, 856, 2472, 7146, 20652, 59684, 172492, 498510, 1440720, 4163760, 12033488, 34777426, 100508628, 290475324, 839489268, 2426169014, 7011758584, 20264358408, 58565082744, 169256230458, 489159584636, 1413697437268
Offset: 1
-
a:=[2,4,12,36];; for n in [5..40] do a[n]:=2*a[n-1]+2*a[n-2]+ 2*a[n-3]-a[n-4]; od; a; # G. C. Greubel, Jul 30 2019
-
I:=[2,4,12,36]; [n le 4 select I[n] else 2*Self(n-1) +2*Self(n-2) +2*Self(n-3) -Self(n-4): n in [1..40]]; // G. C. Greubel, Jul 30 2019
-
q[x_]:= x + 1; m:=40;
reductionRules = {x^y_?EvenQ -> q[x]^(y/2), x^y_?OddQ -> x q[x]^((y - 1)/2)};
t = Table[Last[Most[FixedPointList[Expand[#1 /. reductionRules] &, ChebyshevU[n, x]]]], {n, m}];
Table[Coefficient[Part[t, n], x, 0], {n, m}] (* A192235 *)
Table[Coefficient[Part[t, n], x, 1], {n, m}] (* A192236 *)
Table[Coefficient[Part[t, n]/2, x, 1], {n, m}] (* A192237 *)
(* Peter J. C. Moses, Jun 25 2011 *)
LinearRecurrence[{2,2,2,-1}, {2,4,12,36}, 40] (* G. C. Greubel, Jul 30 2019 *)
-
m=40; v=concat([2,4,12,36], vector(m-4)); for(n=5, m, v[n] = 2*v[n-1]+2*v[n-2]+2*v[n-3]-v[n-4]); v \\ G. C. Greubel, Jul 30 2019
-
def a(n):
if (n==0): return 2
elif (1 <= n <= 3): return 4*3^(n-1)
else: return 2*(a(n-1) + a(n-2) + a(n-3)) - a(n-4)
[a(n) for n in (0..40)] # G. C. Greubel, Jul 30 2019
A317976
a(n) = 2*(a(n-1)+a(n-2)+a(n-3))-a(n-4) for n >= 4, with initial terms 0,0,1,0.
Original entry on oeis.org
0, 0, 1, 0, 2, 6, 15, 46, 132, 380, 1101, 3180, 9190, 26562, 76763, 221850, 641160, 1852984, 5355225, 15476888, 44729034, 129269310, 373595239, 1079710278, 3120420620, 9018182964, 26063032485, 75323561860, 217689133998, 629133273722, 1818228906675, 5254779066930, 15186593360656, 43890069394800, 126844654738097
Offset: 0
Showing 1-4 of 4 results.
Comments