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-2 of 2 results.

A055845 a(n) = 4*a(n-1) - a(n-2) with a(0)=1, a(1)=8.

Original entry on oeis.org

1, 8, 31, 116, 433, 1616, 6031, 22508, 84001, 313496, 1169983, 4366436, 16295761, 60816608, 226970671, 847066076, 3161293633, 11798108456, 44031140191, 164326452308, 613274669041, 2288772223856
Offset: 0

Views

Author

Barry E. Williams, May 31 2000

Keywords

References

  • A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., 1964, pp. 194-196.

Crossrefs

Cf. A054485.

Programs

  • GAP
    a:=[1,8];; for n in [3..30] do a[n]:=4*a[n-1]-a[n-2]; od; a; # G. C. Greubel, Jan 20 2020
  • Magma
    I:=[1,8]; [n le 2 select I[n] else 4*Self(n-1) - Self(n-2): n in [1..30]]; // G. C. Greubel, Jan 20 2020
    
  • Maple
    seq( simplify(ChebyshevU(n,2) + 4*ChebyshevU(n-1,2)), n=0..30); # G. C. Greubel, Jan 20 2020
  • Mathematica
    LinearRecurrence[{4,-1}, {1,8}, 30]  (* Sture Sjöstedt, Nov 30 2011 *)
    Table[ChebyshevU[n, 2] + 4*ChebyshevU[n-1, 2], {n,0,30}] (* G. C. Greubel, Jan 20 2020 *)
  • PARI
    a(n) = polchebyshev(n,2,2) + 4*polchebyshev(n-1,2,2); \\ G. C. Greubel, Jan 20 2020
    
  • Sage
    [chebyshev_U(n,2) +4*chebyshev_U(n-1,2) for n in (0..30)] # G. C. Greubel, Jan 20 2020
    

Formula

a(n) = (8*((2+sqrt(3))^n - (2-sqrt(3))^n) - ((2+sqrt(3))^(n-1) - (2-sqrt(3))^(n-1)))/(2*sqrt(3)).
G.f.: (1+4*x)/(1-4*x+x^2).
a(n)^2 = 3*A144721(n)^2 - 11. - Sture Sjöstedt, Nov 30 2011
From G. C. Greubel, Jan 20 2020: (Start)
a(n) = ChebyshevU(n,2) + 4*ChebyshevU(n-1,2).
E.g.f.: exp(2*x)*( cosh(sqrt(3)*x) + 2*sqrt(3)*sinh(sqrt(3)*x) ). (End)

A144720 a(0) = 2, a(1) = 3, a(n) = 4 * a(n-1) - a(n-2).

Original entry on oeis.org

2, 3, 10, 37, 138, 515, 1922, 7173, 26770, 99907, 372858, 1391525, 5193242, 19381443, 72332530, 269948677, 1007462178, 3759900035, 14032137962, 52368651813, 195442469290, 729401225347, 2722162432098, 10159248503045
Offset: 0

Views

Author

Michael Somos, Sep 19 2008

Keywords

Crossrefs

Cf. A144721(n) = a(-n).

Programs

  • Mathematica
    LinearRecurrence[{4,-1},{2,3},30] (* Harvey P. Dale, Aug 29 2015 *)
  • PARI
    {a(n) = real( (2 + quadgen(12))^n * ( 2 - 1 / quadgen(12) ))}
    
  • PARI
    {a(n) = subst( (4*polchebyshev(n) + polchebyshev(n-1)) / 3, x, 2)}

Formula

Sequence satisfies -11 = f(a(n), a(n+1)) where f(u, v) = u^2 + v^2 - 4*u*v.
G.f.: (2 - 5*x) / (1 - 4*x + x^2). a(n) = (11 + a(n-1)^2) / a(n-2).
Showing 1-2 of 2 results.