cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 41-42 of 42 results.

A266708 Coefficient of x in minimal polynomial of the continued fraction [1^n,tau,1,1,1,...], where 1^n means n ones and tau = golden ratio = (1 + sqrt(5))/2.

Original entry on oeis.org

0, -10, -18, -56, -138, -370, -960, -2522, -6594, -17272, -45210, -118370, -309888, -811306, -2124018, -5560760, -14558250, -38114002, -99783744, -261237242, -683927970, -1790546680, -4687712058, -12272589506, -32130056448, -84117579850, -220222683090
Offset: 0

Views

Author

Clark Kimberling, Jan 09 2016

Keywords

Comments

See A265762 for a guide to related sequences.

Examples

			Let p(n,x) be the minimal polynomial of the number given by the n-th continued fraction:
[tau,1,1,1,1,...] = sqrt(5) has p(0,x) = -5 + x^2, so a(0) = 0;
[1,tau,1,1,1,...] = (5 + sqrt(5))/5 has p(1,x) = 4 - 10*x + 5*x^2, so a(1) = -10;
[1,1,tau,1,1,...] = (9 - sqrt(5))/4 has p(2,x) = 19 - 18*x + 4*x^2, so a(2) = -18.
		

Crossrefs

Programs

  • Mathematica
    u[n_] := Table[1, {k, 1, n}]; t[n_] := Join[u[n], {GoldenRatio}, {{1}}];
    f[n_] := FromContinuedFraction[t[n]];
    t = Table[MinimalPolynomial[f[n], x], {n, 0, 20}]
    Coefficient[t, x, 0] (* A266707 *)
    Coefficient[t, x, 1] (* A266708 *)
    Coefficient[t, x, 2] (* A266707 *)
  • PARI
    a(n) = round((2^(1-n)*(3*(-1)^n*2^(1+n)+(3-sqrt(5))^n*(-3+2*sqrt(5))-(3+sqrt(5))^n*(3+2*sqrt(5))))/5) \\ Colin Barker, Sep 30 2016
    
  • PARI
    concat(0, Vec(-2*x*(5-x)/((1+x)*(1-3*x+x^2)) + O(x^30))) \\ Colin Barker, Sep 30 2016

Formula

G.f.: 2*x*(-5 + x)/((1 + x)*(1 - 3*x + x^2)).
a(n) = 2*a(n-1) - 2*a(n-2) + a(n-3).
a(n) = -2*A192914(n+1).
a(n) = (2^(1-n)*(3*(-1)^n*2^(1+n)+(3-sqrt(5))^n*(-3+2*sqrt(5))-(3+sqrt(5))^n*(3+2*sqrt(5))))/5. - Colin Barker, Sep 30 2016

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

Original entry on oeis.org

-7, -25, -59, -161, -415, -1093, -2855, -7481, -19579, -51265, -134207, -351365, -919879, -2408281, -6304955, -16506593, -43214815, -113137861, -296198759, -775458425, -2030176507, -5315071105, -13915036799, -36430039301, -95375081095, -249695203993
Offset: 0

Views

Author

Clark Kimberling, Jan 09 2016

Keywords

Comments

See A265762 for a guide to related sequences.

Examples

			Let p(n,x) be the minimal polynomial of the number given by the n-th continued fraction:
[2,2,1,1,1,...] = (7-sqrt(5))/2 has p(0,x) = 11 - 7 x + x^2, so a(0) = -7;
[2,1,2,1,1,1,...] = (25+sqrt(5))/10 has p(1,x) = 31 - 25 x + 5 x^2, so a(1) = -25;
[2,1,1,2,1,...] = (59-sqrt(5))/22 has p(2,x) = 79 - 59 x + 11 x^2, so a(2) = -59.
		

Crossrefs

Programs

  • Mathematica
    u[n_] := Table[1, {k, 1, n}]; t[n_] := Join[{2}, u[n], {2}, {{1}}];
    f[n_] := FromContinuedFraction[t[n]];
    t = Table[MinimalPolynomial[f[n], x], {n, 0, 20}]
    Coefficient[t, x, 0]  (* A236428 *)
    Coefficient[t, x, 1]  (* A266709 *)
    Coefficient[t, x, 2]  (* A236428 *)
  • PARI
    a(n) = round((2^(-n)*(9*(-2)^n+2*(3-sqrt(5))^n*(-11+5*sqrt(5))-2*(3+sqrt(5))^n*(11+5*sqrt(5))))/5) \\ Colin Barker, Oct 01 2016
    
  • PARI
    Vec(-(7+11*x-5*x^2)/((1+x)*(1-3*x+x^2)) + O(x^40)) \\ Colin Barker, Oct 01 2016

Formula

a(n) = 2*a(n-1) - 2*a(n-2) + a(n-3).
G.f.: (1 + 3 x - x^2)/(1 - 2 x - 2 x^2 + x^3).
a(n) = (2^(-n)*(9*(-2)^n+2*(3-sqrt(5))^n*(-11+5*sqrt(5))-2*(3+sqrt(5))^n*(11+5*sqrt(5))))/5. - Colin Barker, Oct 01 2016
Previous Showing 41-42 of 42 results.