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-10 of 26 results. Next

A040000 a(0)=1; a(n)=2 for n >= 1.

Original entry on oeis.org

1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
Offset: 0

Views

Author

N. J. A. Sloane, Dec 11 1999

Keywords

Comments

Continued fraction expansion of sqrt(2) is 1 + 1/(2 + 1/(2 + 1/(2 + ...))).
Inverse binomial transform of Mersenne numbers A000225(n+1) = 2^(n+1) - 1. - Paul Barry, Feb 28 2003
A Chebyshev transform of 2^n: if A(x) is the g.f. of a sequence, map it to ((1-x^2)/(1+x^2))A(x/(1+x^2)). - Paul Barry, Oct 31 2004
An inverse Catalan transform of A068875 under the mapping g(x)->g(x(1-x)). A068875 can be retrieved using the mapping g(x)->g(xc(x)), where c(x) is the g.f. of A000108. A040000 and A068875 may be described as a Catalan pair. - Paul Barry, Nov 14 2004
Sequence of electron arrangement in the 1s 2s and 3s atomic subshells. Cf. A001105, A016825. - Jeremy Gardiner, Dec 19 2004
Binomial transform of A165326. - Philippe Deléham, Sep 16 2009
Let m=2. We observe that a(n) = Sum_{k=0..floor(n/2)} binomial(m,n-2*k). Then there is a link with A113311 and A115291: it is the same formula with respectively m=3 and m=4. We can generalize this result with the sequence whose g.f. is given by (1+z)^(m-1)/(1-z). - Richard Choulet, Dec 08 2009
With offset 1: number of permutations where |p(i) - p(i+1)| <= 1 for n=1,2,...,n-1. This is the identical permutation and (for n>1) its reversal.
Equals INVERT transform of bar(1, 1, -1, -1, ...).
Eventual period is (2). - Zak Seidov, Mar 05 2011
Also decimal expansion of 11/90. - Vincenzo Librandi, Sep 24 2011
a(n) = 3 - A054977(n); right edge of the triangle in A182579. - Reinhard Zumkeller, May 07 2012
With offset 1: minimum cardinality of the range of a periodic sequence with (least) period n. Of course the range's maximum cardinality for a purely periodic sequence with (least) period n is n. - Rick L. Shepherd, Dec 08 2014
With offset 1: n*a(1) + (n-1)*a(2) + ... + 2*a(n-1) + a(n) = n^2. - Warren Breslow, Dec 12 2014
With offset 1: decimal expansion of gamma(4) = 11/9 where gamma(n) = Cp(n)/Cv(n) is the n-th Poisson's constant. For the definition of Cp and Cv see A272002. - Natan Arie Consigli, Sep 11 2016
a(n) equals the number of binary sequences of length n where no two consecutive terms differ. Also equals the number of binary sequences of length n where no two consecutive terms are the same. - David Nacin, May 31 2017
a(n) is the period of the continued fractions for sqrt((n+2)/(n+1)) and sqrt((n+1)/(n+2)). - A.H.M. Smeets, Dec 05 2017
Also, number of self-avoiding walks and coordination sequence for the one-dimensional lattice Z. - Sean A. Irvine, Jul 27 2020

Examples

			sqrt(2) = 1.41421356237309504... = 1 + 1/(2 + 1/(2 + 1/(2 + 1/(2 + ...)))). - _Harry J. Smith_, Apr 21 2009
G.f. = 1 + 2*x + 2*x^2 + 2*x^3 + 2*x^4 + 2*x^5 + 2*x^6 + 2*x^7 + 2*x^8 + ...
11/90 = 0.1222222222222222222... - _Natan Arie Consigli_, Sep 11 2016
		

References

  • A. Beiser, Concepts of Modern Physics, 2nd Ed., McGraw-Hill, 1973.
  • John H. Conway and Richard K. Guy, The Book of Numbers, New York: Springer-Verlag, 1996. See p. 186.
  • Jan Gullberg, Mathematics from the Birth of Numbers, W. W. Norton & Co., NY & London, 1997, §4.4 Powers and Roots, p. 144.
  • James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, pages 276-278.

Crossrefs

Convolution square is A008574.
See A003945 etc. for (1+x)/(1-k*x).
From Jaume Oliver Lafont, Mar 26 2009: (Start)
Sum_{0<=k<=n} a(k) = A005408(n).
Prod_{0<=k<=n} a(k) = A000079(n). (End)
Cf. A000674 (boustrophedon transform).
Cf. A001333/A000129 (continued fraction convergents).
Cf. A000122, A002193 (sqrt(2) decimal expansion), A006487 (Egyptian fraction).
Cf. Other continued fractions for sqrt(a^2+1) = (a, 2a, 2a, 2a....): A040002 (contfrac(sqrt(5)) = (2,4,4,...)), A040006, A040012, A040020, A040030, A040042, A040056, A040072, A040090, A040110 (contfrac(sqrt(122)) = (11,22,22,...)), A040132, A040156, A040182, A040210, A040240, A040272, A040306, A040342, A040380, A040420 (contfrac(sqrt(442)) = (21,42,42,...)), A040462, A040506, A040552, A040600, A040650, A040702, A040756, A040812, A040870, A040930 (contfrac(sqrt(962)) = (31,62,62,...)).

Programs

  • Haskell
    a040000 0 = 1; a040000 n = 2
    a040000_list = 1 : repeat 2  -- Reinhard Zumkeller, May 07 2012
  • Maple
    Digits := 100: convert(evalf(sqrt(2)),confrac,90,'cvgts'):
  • Mathematica
    ContinuedFraction[Sqrt[2],300] (* Vladimir Joseph Stephan Orlovsky, Mar 04 2011 *)
    a[ n_] := 2 - Boole[n == 0]; (* Michael Somos, Dec 28 2014 *)
    PadRight[{1},120,2] (* or *) RealDigits[11/90, 10, 120][[1]] (* Harvey P. Dale, Jul 12 2025 *)
  • PARI
    {a(n) = 2-!n}; /* Michael Somos, Apr 16 2007 */
    
  • PARI
    a(n)=1+sign(n)  \\ Jaume Oliver Lafont, Mar 26 2009
    
  • PARI
    allocatemem(932245000); default(realprecision, 21000); x=contfrac(sqrt(2)); for (n=0, 20000, write("b040000.txt", n, " ", x[n+1]));  \\ Harry J. Smith, Apr 21 2009
    

Formula

G.f.: (1+x)/(1-x). - Paul Barry, Feb 28 2003
a(n) = 2 - 0^n; a(n) = Sum_{k=0..n} binomial(1, k). - Paul Barry, Oct 16 2004
a(n) = n*Sum_{k=0..floor(n/2)} (-1)^k*binomial(n-k, k)*2^(n-2*k)/(n-k). - Paul Barry, Oct 31 2004
A040000(n) = Sum_{k=0..floor(n/2)} binomial(n-k, k)*(-1)^k*A068875(n-k). - Paul Barry, Nov 14 2004
From Michael Somos, Apr 16 2007: (Start)
Euler transform of length 2 sequence [2, -1].
G.f. A(x) satisfies 0 = f(A(x), A(x^2), A(x^4)) where f(u, v, w) = (u-v)*(u+v) - 2*v*(u-w).
E.g.f.: 2*exp(x) - 1.
a(n) = a(-n) for all n in Z (one possible extension to n<0). (End)
G.f.: (1-x^2)/(1-x)^2. - Jaume Oliver Lafont, Mar 26 2009
G.f.: exp(2*atanh(x)). - Jaume Oliver Lafont, Oct 20 2009
a(n) = Sum_{k=0..n} A108561(n,k)*(-1)^k. - Philippe Deléham, Nov 17 2013
a(n) = 1 + sign(n). - Wesley Ivan Hurt, Apr 16 2014
10 * 11/90 = 11/9 = (11/2 R)/(9/2 R) = Cp(4)/Cv(4) = A272005/A272004, with R = A081822 (or A070064). - Natan Arie Consigli, Sep 11 2016
a(n) = A001227(A000040(n+1)). - Omar E. Pol, Feb 28 2018

A002163 Decimal expansion of square root of 5.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Also the limiting ratio of Lucas(n)/Fibonacci(n). - Alexander Adamchuk, Oct 10 2007
Continued fraction expansion is 2 followed by {4} repeated. - Harry J. Smith, Jun 01 2009
This is the first Lagrange number. - Alonso del Arte, Dec 06 2011
Equals Tachiya's Product_{n > 0} (1 + 2/A000032(2^n)) = 4*Product_{n > 0} (1 - 1/A000032(2^n)). - Jonathan Sondow, Jan 11 2012
A computation similar, with that of the universal parabolic constant, performed on the curve cosh(x) with the parameters of the osculating parabola, gives as result 2*sinh(arccosh(3/2)), that is sqrt(5) instead of 2.2955871... for the parabola. - Jean-François Alcover, Jul 18 2013
Because sqrt(5) = -1 + 2*phi, with the golden section phi from A001622, this is an integer in the quadratic number field Q(sqrt(5)). - Wolfdieter Lang, Jan 08 2018
This constant appears in the theorem of Hurwitz on the best approximation of any irrational number with infinitely many rationals: |theta - h/k| < 1/(sqrt(5)*k^2). See Niven, also for the Hurwitz 1891 reference. - Wolfdieter Lang, May 27 2018
Diameter of a sphere whose surface area equals 5*Pi. More generally, the square root of x is also the diameter of a sphere whose surface area equals x*Pi. - Omar E. Pol, Nov 11 2018

Examples

			2.236067977499789696409173668731276235440618359611525724270897245410520...
		

References

  • John H. Conway and Richard K. Guy, The Book of Numbers, New York: Springer-Verlag, 1996. See pp. 187, 203.
  • W. E. Mansell, Tables of Natural and Common Logarithms. Royal Society Mathematical Tables, Vol. 8, Cambridge Univ. Press, 1964, p. XVIII.
  • Ivan Niven, Diophantine Approximations, Interscience Publishers, 1963, Theorem 1.5, pp. 6, 14.
  • Clifford A. Pickover, Wonders of Numbers, Oxford University Press, NY, 2001, p. 106.
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers. Penguin Books, NY, 1986, Revised edition 1987. See p. 45.

Crossrefs

Cf. A040002 (continued fraction).

Programs

  • Magma
    SetDefaultRealField(RealField(100)); Sqrt(5); // Vincenzo Librandi, Feb 13 2020
  • Mathematica
    RealDigits[N[Sqrt[5],200]] (* Vladimir Joseph Stephan Orlovsky, May 27 2010 *)
  • PARI
    default(realprecision, 20080); x=sqrt(5); for (n=1, 20000, d=floor(x); x=(x-d)*10; write("b002163.txt", n, " ", d));  \\ Harry J. Smith, Jun 01 2009
    

Formula

e^(i*Pi) + 2*phi = sqrt(5).
From Christian Katzmann, Mar 19 2018: (Start)
Equals Sum_{n>=0} 5*(2*n)!/(n!^2*3^(2*n+1)).
Equals Sum_{n>=0} 25*(2*n+1)!/(n!^2*3^(2*n+3)). (End)
Equals -1 + 2*phi, with phi = A001622. An integer number in the real quadratic number field Q(sqrt(5)). - Wolfdieter Lang, May 09 2018
Equals Sum_{k>=0} binomial(2*k,k)/5^k. - Amiram Eldar, Aug 03 2020
Equals 2*sin(Pi/5) * 2*sin(2*Pi/5). - Gary W. Adamson, Jul 14 2022
Equals w - w^2 - w^3 + w^4 where w = exp(2*Pi*i/5). - Alexander R. Povolotsky, Nov 23 2022
From Antonio Graciá Llorente, Apr 18 2024: (Start)
Equals Product_{k>=0} ((10*k + 2)(10*k + 4)(10*k + 6)(10*k + 8))/((10*k + 1)*(10*k + 3)*(10*k + 7)*(10*k + 9)).
Equals Product_{k>=1} A217562(k)/A045572(k).
Equals Product_{k>=0} (1/2)*(((4*k + 9)/(4*k + 1))^(1/2) + ((4*k + 1)/(4*k + 9))^(1/2)).
Equals Product_{k>=1} (phi^k + phi)/(phi^k + phi - 1), with phi = A001622.
Equals Product_{k>=0} (Fibonacci(2*k + 3) + (-1)^k)/(Fibonacci(2*k + 3) - (-1)^k). (End)

Extensions

Sequence corrected by Paul Zimmermann, Mar 15 1996
Additional comments from Jason Earls, Mar 26 2001

A089859 Permutation of natural numbers induced by Catalan Automorphism *A089859 acting on the binary trees/parenthesizations encoded by A014486/A063171.

Original entry on oeis.org

0, 1, 3, 2, 8, 7, 6, 4, 5, 21, 22, 20, 17, 18, 19, 16, 14, 9, 10, 15, 11, 12, 13, 58, 59, 62, 63, 64, 57, 61, 54, 45, 46, 55, 48, 49, 50, 56, 60, 53, 44, 47, 51, 42, 37, 23, 24, 38, 25, 26, 27, 52, 43, 39, 28, 29, 40, 30, 31, 32, 41, 33, 34, 35, 36, 170, 171, 174, 175, 176, 184
Offset: 0

Views

Author

Antti Karttunen, Nov 29 2003

Keywords

Comments

This automorphism effects the following transformation on the unlabeled rooted plane binary trees (letters A, B, C refer to arbitrary subtrees located on those nodes and () stands for an implied terminal node).
.....B...C.......C...B
......\./.........\./
...A...x...-->... .x...A...............A..().........()..A..
....\./.............\./.................\./....-->....\./...
.....x...............x...................x.............x....
(a . (b . c)) --> ((c . b) . a) ___ (a . ()) --> (() . a)
See the Karttunen OEIS-Wiki link for a detailed explanation of how to obtain a given integer sequence from this definition.

Crossrefs

Row 15 of A089840. Inverse of A089863. a(n) = A089854(A069770(n)) = A069770(A089850(n)). A089864 is the "square" of this permutation.
Number of cycles: A089407. Max. cycle size & LCM of all cycle sizes: A040002 (in each range limited by A014137 and A014138).

Extensions

A graphical description and constructive implementation of Scheme-function (*A089859) added by Antti Karttunen, Jun 04 2011

A089863 Permutation of natural numbers induced by Catalan Automorphism *A089863 acting on the binary trees/parenthesizations encoded by A014486/A063171.

Original entry on oeis.org

0, 1, 3, 2, 7, 8, 6, 5, 4, 17, 18, 20, 21, 22, 16, 19, 15, 12, 13, 14, 11, 9, 10, 45, 46, 48, 49, 50, 54, 55, 57, 58, 59, 61, 62, 63, 64, 44, 47, 53, 56, 60, 43, 52, 40, 31, 32, 41, 34, 35, 36, 42, 51, 39, 30, 33, 37, 28, 23, 24, 38, 29, 25, 26, 27, 129, 130, 132, 133, 134
Offset: 0

Views

Author

Antti Karttunen, Nov 29 2003

Keywords

Comments

This automorphism effects the following transformation on the unlabeled rooted plane binary trees (letters A, B, C refer to arbitrary subtrees located on those nodes and () stands for an implied terminal node).
.A...B...............B...A
..\./.................\./
...x...C...-->.....C...x...............()..A.........A..()..
....\./.............\./.................\./....-->....\./...
.....x...............x...................x.............x....
((a . b) . c) --> (c . (b . a)) __ (() . a) ----> (a . ())
See the Karttunen OEIS-Wiki link for a detailed explanation of how to obtain a given integer sequence from this definition.

Crossrefs

Row 21 of A089840. Inverse of A089859. a(n) = A089850(A069770(n)) = A069770(A089854(n)). A089864 is the "square" of this permutation.
Number of cycles: A089407. Max. cycle size & LCM of all cycle sizes: A040002 (in each range limited by A014137 and A014138).

Extensions

A graphical description and constructive version of Scheme-implementation added by Antti Karttunen, Jun 04 2011

A123932 a(0) = 1, a(n) = 4 for n > 0.

Original entry on oeis.org

1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
Offset: 0

Views

Author

Philippe Deléham, Nov 28 2006

Keywords

Comments

Continued fraction for sqrt(5)-1.
a(n) = number of permutations of length n+3 having only one ascent such that the first element of the permutation is 3. - Ran Pan, Apr 20 2015
Also, decimal expansion of 13/90. - Bruno Berselli, Apr 24 2015
Column 1 of A327331 and of A327333. - Omar E. Pol, Nov 25 2019

Crossrefs

Essentially the same as A113311, A040002 and A010709.

Programs

Formula

G.f.: (1 + 3*x) / (1 - x).
a(n) = 4 - 3*0^n .
a(n) = 4^n mod 12. - Zerinvary Lajos, Nov 25 2009
E.g.f.: 4*exp(x) - 3. - Elmo R. Oliveira, Aug 06 2024

A220521 Number of toothpicks or D-toothpicks added at n-th stage in the toothpick structure of A220520.

Original entry on oeis.org

1, 2, 4, 4, 4, 4, 8, 8, 4, 4, 8, 12, 16, 12, 16, 16, 4, 4, 8, 12, 16, 20, 24, 26, 24, 12, 20, 32, 40, 28, 32, 32, 4, 4, 8, 12, 16, 20, 24, 26, 24, 20, 32, 44, 64, 52, 48, 54, 40, 12, 20, 36, 48, 56, 64, 74, 76, 30, 44, 72, 88, 60, 64, 64, 4, 4, 8, 12
Offset: 1

Views

Author

Omar E. Pol, Dec 15 2012

Keywords

Comments

From Omar E. Pol, Apr 26 2020: (Start)
The cellular automaton described in A220520 has word "ab", so the structure of this triangle is as follows:
a,b;
a,b;
a,b,a,b;
a,b,a,b,a,b,a,b;
a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b;
...
The row lengths are the terms of A011782 multiplied by 2, equaling the column 2 of the square array A296612: 2, 2, 4, 8, 16, ...
This arrangement has the property that the odd-indexed columns (a) contain numbers of the toothpicks of length 1, and the even-indexed columns (b) contain numbers of the D-toothpicks.
For further information about the "word" of a cellular automaton see A296612. (End)

Examples

			Written as an irregular triangle the sequence begins:
1,2;
4,4;
4,4,8,8;
4,4,8,12,16,12,16,16;
4,4,8,12,16,20,24,26,24,12,20,32,40,28,32,32;
4,4,8,12,16,20,24,26,24,20,32,44,64,52,48,54,40,12,20,...
Triangle reformatted by _Omar E. Pol_, Apr 26 2020
		

Crossrefs

First differences of A220520.
First differs from A194441 at a(14).
Columns 1-3: A123932, A040002, A010731.

Extensions

0 removed and offset changed by Omar E. Pol, Apr 26 2020

A040056 Continued fraction for sqrt(65).

Original entry on oeis.org

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

Views

Author

Keywords

Examples

			8.06225774829854965236661... = 8 + 1/(16 + 1/(16 + 1/(16 + 1/(16 + ...)))).
		

Crossrefs

Cf. A010517 (decimal expansion), A041112/A041113 (convergents), A248289 (Egyptian fraction).

Programs

  • Maple
    Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
  • Mathematica
    ContinuedFraction[Sqrt[65],300] (* Vladimir Joseph Stephan Orlovsky, Mar 08 2011 *)
    PadRight[{8},120,{16}] (* Harvey P. Dale, Nov 27 2020 *)
  • PARI
    { allocatemem(932245000); default(realprecision, 49000); x=contfrac(sqrt(65)); for (n=0, 20000, write("b040056.txt", n, " ", x[n+1])); } \\ Harry J. Smith, Jun 07 2009

Formula

From Elmo R. Oliveira, Feb 10 2024: (Start)
a(n) = 16 = A010855(n) for n >= 1.
G.f.: 8*(1+x)/(1-x).
E.g.f.: 16*exp(x) - 8.
a(n) = 8*A040000(n) = 4*A040002(n) = 2*A040012(n). (End)

A040030 Continued fraction for sqrt(37).

Original entry on oeis.org

6, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12
Offset: 0

Views

Author

Keywords

Examples

			6.08276253029821968899968... = 6 + 1/(12 + 1/(12 + 1/(12 + 1/(12 + ...)))). - _Harry J. Smith_, Jun 04 2009
		

References

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

Crossrefs

Cf. A010491 (decimal expansion), A041060/A041061 (convergents), A248263 (Egyptian fraction).

Programs

  • Maple
    Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
  • Mathematica
    ContinuedFraction[Sqrt[37],300] (* Vladimir Joseph Stephan Orlovsky, Mar 06 2011 *)
    PadRight[{6},120,{12}] (* Harvey P. Dale, Jan 02 2017 *)
  • PARI
    { allocatemem(932245000); default(realprecision, 44000); x=contfrac(sqrt(37)); for (n=0, 20000, write("b040030.txt", n, " ", x[n+1])); } \\ Harry J. Smith, Jun 04 2009

Formula

From Elmo R. Oliveira, Feb 06 2024: (Start)
a(n) = 12 for n >= 1.
G.f.: 6*(1+x)/(1-x).
E.g.f.: 12*exp(x) - 6.
a(n) = 6*A040000(n) = 3*A040002(n) = 2*A040006(n). (End)

A040132 Continued fraction for sqrt(145).

Original entry on oeis.org

12, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24
Offset: 0

Views

Author

Keywords

Examples

			12 + 1/(24 + 1/(24 + 1/(24 + 1/(24 + ...)))) = sqrt(145).
		

Crossrefs

Cf. A041264/A041265 (convergents), A176910 (decimal expansion).

Programs

  • Maple
    Digits := 100: convert(evalf(sqrt(N)),confrac,90,'cvgts'):
  • Mathematica
    ContinuedFraction[Sqrt[145],300] (* Vladimir Joseph Stephan Orlovsky, Mar 13 2011*)

Formula

From Elmo R. Oliveira, Feb 12 2024: (Start)
a(n) = 24 for n >= 1.
G.f.: 12*(1+x)/(1-x).
E.g.f.: 24*exp(x) - 12.
a(n) = 12*A040000(n) = 6*A040002(n) = 4*A040006(n). (End)

A040306 Continued fraction for sqrt(325).

Original entry on oeis.org

18, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36
Offset: 0

Views

Author

Keywords

Examples

			18 + 1/(36 + 1/(36 + 1/(36 + 1/(36 + ...)))) = sqrt(325).
		

Crossrefs

Cf. A041612/A041613 (convergents).

Programs

  • Maple
    with(numtheory): Digits := 300: convert(evalf(sqrt(325)),confrac);
  • Mathematica
    Block[{$MaxExtraPrecision=1000}, ContinuedFraction[Sqrt[325],100]] (* or *) PadRight[{18},100,{36}] (* Harvey P. Dale, Dec 01 2020 *)

Formula

From Elmo R. Oliveira, Feb 14 2024: (Start)
a(n) = 36 for n >= 1.
G.f.: 18*(1+x)/(1-x).
E.g.f.: 36*exp(x) - 18.
a(n) = 18*A040000(n) = 9*A040002(n) = 6*A040006(n). (End)
Showing 1-10 of 26 results. Next