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

A040024 Continued fraction for sqrt(30).

Original entry on oeis.org

5, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2, 10, 2
Offset: 0

Views

Author

Keywords

Examples

			5.4772255750516611345696978... = 5 + 1/(2 + 1/(10 + 1/(2 + 1/(10 + ...)))). - _Harry J. Smith_, Jun 04 2009
		

References

  • James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, page 276.

Crossrefs

Cf. A010485 (decimal expansion), A010700.

Programs

  • Maple
    Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
  • Mathematica
    ContinuedFraction[Sqrt[30],300] (* Vladimir Joseph Stephan Orlovsky, Mar 06 2011 *)
  • PARI
    { allocatemem(932245000); default(realprecision, 28000); x=contfrac(sqrt(30)); for (n=0, 20000, write("b040024.txt", n, " ", x[n+1])); } \\ Harry J. Smith, Jun 04 2009

Formula

G.f.: (5 + 2*x + 5*x^2)/(1 - x^2). - Stefano Spezia, Jul 26 2025

A176057 Decimal expansion of (5+sqrt(30))/5.

Original entry on oeis.org

2, 0, 9, 5, 4, 4, 5, 1, 1, 5, 0, 1, 0, 3, 3, 2, 2, 2, 6, 9, 1, 3, 9, 3, 9, 5, 6, 5, 6, 0, 1, 6, 0, 4, 2, 6, 7, 9, 0, 5, 4, 8, 9, 3, 8, 9, 9, 9, 5, 9, 6, 6, 5, 0, 8, 4, 5, 3, 7, 8, 8, 8, 9, 9, 4, 6, 4, 9, 8, 6, 5, 5, 4, 2, 4, 5, 4, 4, 5, 4, 6, 7, 6, 0, 1, 7, 1, 6, 8, 7, 2, 3, 2, 7, 7, 4, 1, 2, 5, 1, 5, 2, 9, 4, 5
Offset: 1

Views

Author

Klaus Brockhaus, Apr 07 2010

Keywords

Comments

Continued fraction expansion of (5+sqrt(30))/5 is A010700.

Examples

			(5+sqrt(30))/5 = 2.09544511501033222691...
		

Crossrefs

Cf. A010485 (decimal expansion of sqrt(30)), A010700 (repeat 2, 10).

A010679 Period 2: repeat (0,8).

Original entry on oeis.org

0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0, 8, 0
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A010700: 3^(1-(-1)^n) + 1.

Programs

Formula

a(n) = 4*(1-(-1)^n) = 8*(n mod 2). - Paolo P. Lava, Oct 20 2006
G.f.: 8*x/((1-x)*(1+x)). - R. J. Mathar, Nov 21 2011
a(n) = 3^(1-(-1)^n) - 1. - Bruno Berselli, Dec 29 2015

A137797 a(n) = 2*( (n+1) mod 5 ) - 2*( (n+1) mod 2 ).

Original entry on oeis.org

0, 4, 4, 8, -2, 2, 2, 6, 6, 0, 0, 4, 4, 8, -2, 2, 2, 6, 6, 0, 0, 4, 4, 8, -2, 2, 2, 6, 6, 0, 0, 4, 4, 8, -2, 2, 2, 6, 6, 0, 0, 4, 4, 8, -2, 2, 2, 6, 6, 0, 0, 4, 4, 8, -2, 2, 2, 6, 6, 0, 0, 4, 4, 8, -2, 2, 2, 6, 6, 0, 0, 4, 4, 8, -2, 2, 2, 6, 6
Offset: 0

Views

Author

William A. Tedeschi, Feb 10 2008

Keywords

Comments

The sequence is periodic with period 10. - Colin Barker, Dec 16 2014

Examples

			a(2) = 2*((2+1) mod 5) - 2*((2+1) mod 2) = 2*(3 mod 5) - 2*(3 mod 2) = 4.
		

Crossrefs

Suggested by A010700. Used in A137798.

Programs

  • Mathematica
    LinearRecurrence[{-1,0,0,0,1,1},{0,4,4,8,-2,2},100] (* Harvey P. Dale, Jun 08 2015 *)
  • PARI
    concat(0, Vec(-2*x*(3*x^3+6*x^2+4*x+2)/((x-1)*(x+1)*(x^4+x^3+x^2+x+1)) + O(x^100))) \\ Colin Barker, Dec 16 2014

Formula

a(n) = -a(n-1)+a(n-5)+a(n-6) for n>5. - Colin Barker, Dec 16 2014
G.f.: -2*x*(3*x^3+6*x^2+4*x+2) / ((x-1)*(x+1)*(x^4+x^3+x^2+x+1)). - Colin Barker, Dec 16 2014

A176529 Decimal expansion of 5+sqrt(30).

Original entry on oeis.org

1, 0, 4, 7, 7, 2, 2, 5, 5, 7, 5, 0, 5, 1, 6, 6, 1, 1, 3, 4, 5, 6, 9, 6, 9, 7, 8, 2, 8, 0, 0, 8, 0, 2, 1, 3, 3, 9, 5, 2, 7, 4, 4, 6, 9, 4, 9, 9, 7, 9, 8, 3, 2, 5, 4, 2, 2, 6, 8, 9, 4, 4, 4, 9, 7, 3, 2, 4, 9, 3, 2, 7, 7, 1, 2, 2, 7, 2, 2, 7, 3, 3, 8, 0, 0, 8, 5, 8, 4, 3, 6, 1, 6, 3, 8, 7, 0, 6, 2, 5, 7, 6, 4, 7, 2
Offset: 2

Views

Author

Klaus Brockhaus, Apr 24 2010

Keywords

Comments

Continued fraction expansion of 5+sqrt(30) is A010700 preceded by 10.
a(n) = A010485(n-2) for n > 3.

Examples

			5+sqrt(30) = 10.47722557505166113456...
		

Crossrefs

Cf. A010485 (decimal expansion of sqrt(30)), A010700 (repeat 2, 10).

Programs

  • Mathematica
    RealDigits[5+Sqrt[30],10,120][[1]]  (* Harvey P. Dale, Mar 31 2011 *)
Showing 1-5 of 5 results.