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.

Showing 1-3 of 3 results.

A157014 Expansion of x*(1-x)/(1 - 22*x + x^2).

Original entry on oeis.org

1, 21, 461, 10121, 222201, 4878301, 107100421, 2351330961, 51622180721, 1133336644901, 24881784007101, 546265911511321, 11992968269241961, 263299036011811821, 5780585823990618101, 126909589091781786401, 2786230374195208682721, 61170158643202809233461
Offset: 1

Views

Author

Paul Weisenhorn, Feb 21 2009

Keywords

Comments

This sequence is part of a solution of a general problem involving 2 equations, three sequences a(n), b(n), c(n) and a constant A:
A * c(n)+1 = a(n)^2,
(A+1) * c(n)+1 = b(n)^2, where solutions are given by the recurrences:
a(1) = 1, a(2) = 4*A+1, a(n) = (4*A+2)*a(n-1)-a(n-2) for n>2, resulting in a(n) terms 1, 4*A+1, 16*A^2+12*A+1, 64*A^3+80*A^2+24*A+1, ...;
b(1) = 1, b(2) = 4*A+3, b(n) = (4*A+2)*b(n-1)-b(n-2) for n>2, resulting in b(n) terms 1, 4*A+3, 16*A^2+20*A+5, 64*A^3+112*A^2+56*A+7, ...;
c(1) = 0, c(2) = 16*A+8, c(3) = (16*A^2+16*A+3)*c(2), c(n) = (16*A^2+16*A+3) * (c(n-1)-c(n-2)) + c(n-3) for n>3, resulting in c(n) terms 0, 16*A+8, 256*A^3+384*A^2+176*A+24, 4096*A^5 + 10240*A^4 + 9472*A^3 + 3968*A^2 + 736*A + 48, ... .
A157014 is the a(n) sequence for A=5.
For other A values the a(n), b(n) and c(n) sequences are in the OEIS:
A a-sequence b-sequence c-sequence
2 A072256 A054320(n-1) A045502(n-1)
9 A097315(n-1) A097314(n-1) A157881
Positive values of x (or y) satisfying x^2 - 22xy + y^2 + 20 = 0. - Colin Barker, Feb 19 2014
From Klaus Purath, Apr 22 2025: (Start)
Nonnegative solutions to the Diophantine equation 5*b(n)^2 - 6*a(n)^2 = -1. The corresponding b(n) are A133283(n). Note that (b(n+1)^2 - b(n)*b(n+2))/4 = 6 and (a(n)*a(n+2) - a(n+1)^2)/4 = 5.
(a(n) + b(n))/2 = (b(n+1) - a(n+1))/2 = A077421(n-1) = Lucas U(22,1). Also b(n)*a(n+1) - b(n+1)*a(n) = -2.
a(n)=(t(i+2*n-1) + t(i))/(t(i+n) + t(i+n-1)) as long as t(i+n) + t(i+n-1) != 0 for any integer i and n >= 1 where (t) is a sequence satisfying t(i+3) = 21*t(i+2) - 21*t(i+1) + t(i) or t(i+2) = 22*t(i+1) - t(i) without regard to initial values and including this sequence itself. (End)

Crossrefs

Cf. similar sequences listed in A238379.

Programs

  • GAP
    a:=[1,21];; for n in [3..20] do a[n]:=22*a[n-1]-a[n-2]; od; a; # G. C. Greubel, Jan 14 2020
  • Magma
    I:=[1,21]; [n le 2 select I[n] else 22*Self(n-1)-Self(n-2): n in [1..20]]; // Vincenzo Librandi, Feb 21 2014
    
  • Maple
    seq( simplify(ChebyshevU(n-1,11) - ChebyshevU(n-2,11)), n=1..20); # G. C. Greubel, Jan 14 2020
  • Mathematica
    CoefficientList[Series[(1-x)/(1-22x+x^2), {x,0,20}], x] (* Vincenzo Librandi, Feb 21 2014 *)
    a[c_, n_] := Module[{},
       p := Length[ContinuedFraction[ Sqrt[ c]][[2]]];
       d := Denominator[Convergents[Sqrt[c], n p]];
       t := Table[d[[1 + i]], {i, 0, Length[d] - 1, p}];
       Return[t];
    ] (* Complement of A041049 *)
    a[30, 20] (* Gerry Martens, Jun 07 2015 *)
    Table[ChebyshevU[n-1, 11] - ChebyshevU[n-2, 11], {n,20}] (* G. C. Greubel, Jan 14 2020 *)
  • PARI
    Vec((1-x)/(1-22*x+x^2)+O(x^20)) \\ Charles R Greathouse IV, Sep 23 2012
    
  • Sage
    [chebyshev_U(n-1,11) - chebyshev_U(n-2,11) for n in (1..20)] # G. C. Greubel, Jan 14 2020
    

Formula

G.f.: x*(1-x)/(1-22*x+x^2).
a(1) = 1, a(2) = 21, a(n) = 22*a(n-1) - a(n-2) for n>2.
5*A157460(n)+1 = a(n)^2 for n>=1.
6*A157460(n)+1 = A133283(n)^2 for n>=1.
a(n) = (6+sqrt(30)-(-6+sqrt(30))*(11+2*sqrt(30))^(2*n))/(12*(11+2*sqrt(30))^n). - Gerry Martens, Jun 07 2015
a(n) = ChebyshevU(n-1, 11) - ChebyshevU(n-2, 11). - G. C. Greubel, Jan 14 2020

Extensions

Edited by Alois P. Heinz, Sep 09 2011

A153111 Solutions of the Pell-like equation 1 + 6*A*A = 7*B*B, with A, B integers.

Original entry on oeis.org

1, 25, 649, 16849, 437425, 11356201, 294823801, 7654062625, 198710804449, 5158826853049, 133930787374825, 3477041644892401, 90269151979827601, 2343520909830625225, 60841274503616428249, 1579529616184196509249, 41006928746285492812225
Offset: 1

Views

Author

Ctibor O. Zizka, Dec 18 2008

Keywords

Comments

B is of the form B(i) = 26*B(i-1) - B(i-2) for B(0) = 1, B(1) = 25 (this sequence).
A is of the form A(i) = 26*A(i-1) - A(i-2) for A(0) = 1, A(1) = 27.
In general a Pell-like equation of the form 1 + X*A*A = (X + 1)*B*B has the solution A(i) = (4*X + 2)*A(i-1) - A(i-2), for A(0) = 1 and A(1) = (4*X + 3), and B(i) = (4*X + 2)*B(i-1) - B(i-2) for B(0) = 1 and B(1) = (4*X + 1).
Examples in the OEIS:
X = 1 gives A002315 for A(i) and A001653 for B(i);
X = 2 gives A054320 for A(i) and A072256 for B(i);
X = 3 gives A028230 for A(i) and A001570 for B(i);
X = 4 gives A049629 for A(i) and A007805 for B(i);
X = 5 gives A133283 for A(i) and A157014 for B(i);
X = 6 gives A157461 for A(i) and this sequence for B(i).
Positive values of x (or y) satisfying x^2 - 26*x*y + y^2 + 24 = 0. - Colin Barker, Feb 20 2014

Crossrefs

Cf. similar sequences listed in A238379.

Programs

  • Magma
    I:=[1,25]; [n le 2 select I[n] else 26*Self(n-1)-Self(n-2): n in [1..20]]; // Vincenzo Librandi, Feb 22 2014
  • Mathematica
    CoefficientList[Series[(1 - x)/(x^2 - 26 x + 1), {x, 0, 40}], x] (* Vincenzo Librandi, Feb 22 2014 *)
    LinearRecurrence[{26, -1}, {1, 25}, 20] (* Jean-François Alcover, Jan 07 2019 *)
  • PARI
    Vec(-x*(x-1)/(x^2-26*x+1) + O(x^100)) \\ Colin Barker, Feb 20 2014
    

Formula

a(n) = 26*a(n-1) - a(n-2). - Colin Barker, Feb 20 2014
G.f.: -x*(x - 1) / (x^2 - 26*x + 1). - Colin Barker, Feb 20 2014
a(n) = (1/14)*(7 - sqrt(42))*(1 + (13 + 2*sqrt(42))^(2*n - 1))/(13 + 2*sqrt(42))^(n - 1). - Bruno Berselli, Feb 25 2014
E.g.f.: (1/7)*(7*cosh(2*sqrt(42)*x) - sqrt(42)*sinh(2*sqrt(42)*x))*exp(13*x) - 1. - Franck Maminirina Ramaharo, Jan 07 2019

Extensions

More terms from Philippe Deléham, Sep 19 2009; corrected by N. J. A. Sloane, Sep 20 2009
Additional term from Colin Barker, Feb 20 2014

A157874 Expansion of 104*x^2 / (-x^3+675*x^2-675*x+1).

Original entry on oeis.org

0, 104, 70200, 47314800, 31890105104, 21493883525400, 14486845606014600, 9764112444570315104, 6580997300794786365600, 4435582416623241440099400, 2989575967806763935840630104, 2014969766719342269515144590800, 1358086633192868882889271613569200
Offset: 1

Views

Author

Paul Weisenhorn, Mar 08 2009

Keywords

Comments

This sequence is part of a solution of a more general problem involving two equations, three sequences a(n), b(n), c(n) and a constant A:
A * c(n)+1 = a(n)^2,
(A+1) * c(n)+1 = b(n)^2, for details see comment in A157014.
A157874 is the c(n) sequence for A=6.

Crossrefs

6*A157874(n)+1 = A153111(n)^2.
7*A157874(n)+1 = A157461(n)^2.

Programs

  • Mathematica
    Rest[CoefficientList[Series[104x^2/(-x^3+675x^2-675x+1),{x,0,20}],x]] (* or *) LinearRecurrence[{675,-675,1},{0,104,70200},20] (* Harvey P. Dale, Oct 04 2015 *)
  • PARI
    concat(0, Vec(104*x^2/(-x^3+675*x^2-675*x+1) + O(x^20))) \\ Charles R Greathouse IV, Sep 26 2012
    
  • PARI
    a(n) = -round((337+52*sqrt(42))^(-n)*(-1+(337+52*sqrt(42))^n)*(13+2*sqrt(42)+(-13+2*sqrt(42))*(337+52*sqrt(42))^n))/168 \\ Colin Barker, Jul 25 2016

Formula

G.f.: 104*x^2 / (-x^3+675*x^2-675*x+1).
c(1) = 0, c(2) = 104, c(3) = 675*c(2), c(n) = 675 * (c(n-1)-c(n-2)) + c(n-3) for n>3.
a(n) = -((337+52*sqrt(42))^(-n)*(-1+(337+52*sqrt(42))^n)*(13+2*sqrt(42)+(-13+2*sqrt(42))*(337+52*sqrt(42))^n))/168. - Colin Barker, Jul 25 2016

Extensions

Edited by Alois P. Heinz, Sep 09 2011
Showing 1-3 of 3 results.