login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A266699 Coefficient of x^2 in minimal polynomial of the continued fraction [1^n,1/2,1,1,1,...], where 1^n means n ones. 3

%I #16 Sep 08 2022 08:46:15

%S 4,5,1,16,29,89,220,589,1529,4016,10501,27505,71996,188501,493489,

%T 1291984,3382445,8855369,23183644,60695581,158903081,416013680,

%U 1089137941,2851400161,7465062524,19543787429,51166299745,133955111824,350699035709,918141995321

%N Coefficient of x^2 in minimal polynomial of the continued fraction [1^n,1/2,1,1,1,...], where 1^n means n ones.

%C See A265762 for a guide to related sequences.

%H Colin Barker, <a href="/A266699/b266699.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (2,2,-1).

%F a(n) = 2*a(n-1) + 2*a(n-2) - a(n-3) for n>3.

%F G.f.: (4 - 3 x - 17 x^2 + 8 x^3)/(1 - 2 x - 2 x^2 + x^3).

%F a(n) = (2^(-n)*(-9*(-1)^n*2^(1+n) + (3+sqrt(5))^n*(-1+2*sqrt(5)) - (3-sqrt(5))^n*(1+2*sqrt(5))))/5 for n>0. - _Colin Barker_, Oct 20 2016

%e Let p(n,x) be the minimal polynomial of the number given by the n-th continued fraction:

%e [1/2,1,1,1,1,...] = sqrt(5))/2 has p(0,x) = -5 + 4 x^2, so a(0) = 1;

%e [1,1/2,1,1,1,...] = (5 + 2 sqrt(5))/5 has p(1,x) = 1 - 10 x + 5 x^2, so a(1) = 19;

%e [1,1,1/2,1,1,...] = 6 - 2 sqrt(5) has p(2,x) = 16 - 12 x + x^2, so a(2) = 29.

%t u[n_] := Table[1, {k, 1, n}]; t[n_] := Join[u[n], {1/2}, {{1}}];

%t f[n_] := FromContinuedFraction[t[n]];

%t t = Table[MinimalPolynomial[f[n], x], {n, 0, 20}]

%t Coefficient[t, x, 0] (* A266699 *)

%t Coefficient[t, x, 1] (* A266700 *)

%t Coefficient[t, x, 2] (* A266699 *)

%t Join[{4}, LinearRecurrence[{2, 2, -1}, {5, 1, 16}, 30]] (* _Vincenzo Librandi_, Jan 06 2016 *)

%o (Magma) I:=[4,5,1,16]; [n le 4 select I[n] else 2*Self(n-1)+2*Self(n-2)-Self(n-3): n in [1..30]]; // _Vincenzo Librandi_, Jan 06 2016

%o (PARI) Vec((4-3*x-17*x^2+8*x^3)/(1-2*x-2*x^2+x^3) + O(x^100)) \\ _Altug Alkan_, Jan 07 2016

%Y Cf. A265762, A266700.

%K nonn,easy

%O 0,1

%A _Clark Kimberling_, Jan 05 2016

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 13:18 EDT 2024. Contains 371952 sequences. (Running on oeis4.)