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 21 results. Next

A001541 a(0) = 1, a(1) = 3; for n > 1, a(n) = 6*a(n-1) - a(n-2).

Original entry on oeis.org

1, 3, 17, 99, 577, 3363, 19601, 114243, 665857, 3880899, 22619537, 131836323, 768398401, 4478554083, 26102926097, 152139002499, 886731088897, 5168247530883, 30122754096401, 175568277047523, 1023286908188737, 5964153172084899, 34761632124320657
Offset: 0

Views

Author

Keywords

Comments

Chebyshev polynomials of the first kind evaluated at 3.
This sequence gives the values of x in solutions of the Diophantine equation x^2 - 8*y^2 = 1, the corresponding values of y are in A001109. For n > 0, the ratios a(n)/A001090(n) may be obtained as convergents to sqrt(8): either successive convergents of [3; -6] or odd convergents of [2; 1, 4]. - Lekraj Beedassy, Sep 09 2003 [edited by Jon E. Schoenfield, May 04 2014]
Also gives solutions to the equation x^2 - 1 = floor(x*r*floor(x/r)) where r = sqrt(8). - Benoit Cloitre, Feb 14 2004
Appears to give all solutions greater than 1 to the equation: x^2 = ceiling(x*r*floor(x/r)) where r = sqrt(2). - Benoit Cloitre, Feb 24 2004
This sequence give numbers n such that (n-1)*(n+1)/2 is a perfect square. Remark: (i-1)*(i+1)/2 = (i^2-1)/2 = -1 = i^2 with i = sqrt(-1) so i is also in the sequence. - Pierre CAMI, Apr 20 2005
a(n) is prime for n = {1, 2, 4, 8}. Prime a(n) are {3, 17, 577, 665857}, which belong to A001601(n). a(2k-1) is divisible by a(1) = 3. a(4k-2) is divisible by a(2) = 17. a(8k-4) is divisible by a(4) = 577. a(16k-8) is divisible by a(8) = 665857. - Alexander Adamchuk, Nov 24 2006
The upper principal convergents to 2^(1/2), beginning with 3/2, 17/12, 99/70, 577/408, comprise a strictly decreasing sequence; essentially, numerators=A001541 and denominators=A001542. - Clark Kimberling, Aug 26 2008
Also index of sequence A082532 for which A082532(n) = 1. - Carmine Suriano, Sep 07 2010
Numbers n such that sigma(n-1) and sigma(n+1) are both odd numbers. - Juri-Stepan Gerasimov, Mar 28 2011
Also, numbers such that floor(a(n)^2/2) is a square: base 2 analog of A031149, A204502, A204514, A204516, A204518, A204520, A004275, A001075. - M. F. Hasler, Jan 15 2012
Numbers such that 2n^2 - 2 is a square. Also integer square roots of the expression 2*n^2 + 1, at values of n given by A001542. Also see A228405 regarding 2n^2 -+ 2^k generally for k >= 0. - Richard R. Forberg, Aug 20 2013
Values of x (or y) in the solutions to x^2 - 6xy + y^2 + 8 = 0. - Colin Barker, Feb 04 2014
Panda and Ray call the numbers in this sequence the Lucas-balancing numbers C_n (see references and links).
Partial sums of X or X+1 of Pythagorean triples (X,X+1,Z). - Peter M. Chema, Feb 03 2017
a(n)/A001542(n) is the closest rational approximation to sqrt(2) with a numerator not larger than a(n), and 2*A001542(n)/a(n) is the closest rational approximation to sqrt(2) with a denominator not larger than a(n). These rational approximations together with those obtained from the sequences A001653 and A002315 give a complete set of closest rational approximations to sqrt(2) with restricted numerator or denominator. a(n)/A001542(n) > sqrt(2) > 2*A001542(n)/a(n). - A.H.M. Smeets, May 28 2017
x = a(n), y = A001542(n) are solutions of the Diophantine equation x^2 - 2y^2 = 1 (Pell equation). x = 2*A001542(n), y = a(n) are solutions of the Diophantine equation x^2 - 2y^2 = -2. Both together give the set of fractional approximations for sqrt(2) obtained from limited fractions obtained from continued fraction representation to sqrt(2). - A.H.M. Smeets, Jun 22 2017
a(n) is the radius of the n-th circle among the sequence of circles generated as follows: Starting with a unit circle centered at the origin, every subsequent circle touches the previous circle as well as the two limbs of hyperbola x^2 - y^2 = 1, and lies in the region y > 0. - Kaushal Agrawal, Nov 10 2018
All of the positive integer solutions of a*b+1=x^2, a*c+1=y^2, b*c+1=z^2, x+z=2*y, 0A001542(n), b=A005319(n), c=A001542(n+1), x=A001541(n), y=A001653(n+1), z=A002315(n) with 0Michael Somos, Jun 26 2022

Examples

			99^2 + 99^2 = 140^2 + 2. - _Carmine Suriano_, Jan 05 2015
G.f. = 1 + 3*x + 17*x^2 + 99*x^3 + 577*x^4 + 3363*x^5 + 19601*x^6 + 114243*x^7 + ...
		

References

  • Julio R. Bastida, Quadratic properties of a linearly recurrent sequence. Proceedings of the Tenth Southeastern Conference on Combinatorics, Graph Theory and Computing (Florida Atlantic Univ., Boca Raton, Fla., 1979), pp. 163--166, Congress. Numer., XXIII-XXIV, Utilitas Math., Winnipeg, Man., 1979. MR0561042 (81e:10009)
  • J. W. L. Glaisher, On Eulerian numbers (formulas, residues, end-figures), with the values of the first twenty-seven, Quarterly Journal of Mathematics, vol. 45, 1914, pp. 1-51.
  • G. K. Panda, Some fascinating properties of balancing numbers, In Proc. of Eleventh Internat. Conference on Fibonacci Numbers and Their Applications, Cong. Numerantium 194 (2009), 185-189.
  • 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).
  • James J. Tattersall, Elementary Number Theory in Nine Chapters, Cambridge University Press, 1999, pages 257-258.
  • P.-F. Teilhet, Query 2376, L'Intermédiaire des Mathématiciens, 11 (1904), 138-139. - N. J. A. Sloane, Mar 08 2022

Crossrefs

Bisection of A001333. A003499(n) = 2a(n).
Cf. A055997 = numbers n such that n(n-1)/2 is a square.
Row 1 of array A188645.
Cf. A055792 (terms squared), A132592.

Programs

  • Haskell
    a001541 n = a001541_list !! (n-1)
    a001541_list =
    1 : 3 : zipWith (-) (map (* 6) $ tail a001541_list) a001541_list
    -- Reinhard Zumkeller, Oct 06 2011
    (Scheme, with memoization-macro definec)
    (definec (A001541 n) (cond ((zero? n) 1) ((= 1 n) 3) (else (- (* 6 (A001541 (- n 1))) (A001541 (- n 2))))))
    ;; Antti Karttunen, Oct 04 2016
  • Magma
    [n: n in [1..10000000] |IsSquare(8*(n^2-1))]; // Vincenzo Librandi, Nov 18 2010
    
  • Maple
    a[0]:=1: a[1]:=3: for n from 2 to 26 do a[n]:=6*a[n-1]-a[n-2] od: seq(a[n], n=0..20); # Zerinvary Lajos, Jul 26 2006
    A001541:=-(-1+3*z)/(1-6*z+z**2); # Simon Plouffe in his 1992 dissertation
  • Mathematica
    Table[Simplify[(1/2) (3 + 2 Sqrt[2])^n + (1/2) (3 - 2 Sqrt[2])^n], {n, 0, 20}] (* Artur Jasinski, Feb 10 2010 *)
    a[ n_] := If[n == 0, 1, With[{m = Abs @ n}, m Sum[4^i Binomial[m + i, 2 i]/(m + i), {i, 0, m}]]]; (* Michael Somos, Jul 11 2011 *)
    a[ n_] := ChebyshevT[ n, 3]; (* Michael Somos, Jul 11 2011 *)
    LinearRecurrence[{6, -1}, {1, 3}, 50] (* Vladimir Joseph Stephan Orlovsky, Feb 12 2012 *)
  • PARI
    {a(n) = real((3 + quadgen(32))^n)}; /* Michael Somos, Apr 07 2003 */
    
  • PARI
    {a(n) = subst( poltchebi( abs(n)), x, 3)}; /* Michael Somos, Apr 07 2003 */
    
  • PARI
    {a(n) = if( n<0, a(-n), polsym(1 - 6*x + x^2, n) [n+1] / 2)}; /* Michael Somos, Apr 07 2003 */
    
  • PARI
    {a(n) = polchebyshev( n, 1, 3)}; /* Michael Somos, Jul 11 2011 */
    
  • PARI
    a(n)=([1,2,2;2,1,2;2,2,3]^n)[3,3] \\ Vim Wenders, Mar 28 2007
    

Formula

G.f.: (1-3*x)/(1-6*x+x^2). - Barry E. Williams and Wolfdieter Lang, May 05 2000
E.g.f.: exp(3*x)*cosh(2*sqrt(2)*x). Binomial transform of A084128. - Paul Barry, May 16 2003
From N. J. A. Sloane, May 16 2003: (Start)
a(n) = sqrt(8*((A001109(n))^2) + 1).
a(n) = T(n, 3), with Chebyshev's T-polynomials A053120. (End)
a(n) = ((3+2*sqrt(2))^n + (3-2*sqrt(2))^n)/2.
a(n) = cosh(2*n*arcsinh(1)). - Herbert Kociemba, Apr 24 2008
a(n) ~ (1/2)*(sqrt(2) + 1)^(2*n). - Joe Keane (jgk(AT)jgk.org), May 15 2002
For all elements x of the sequence, 2*x^2 - 2 is a square. Limit_{n -> infinity} a(n)/a(n-1) = 3 + 2*sqrt(2). - Gregory V. Richardson, Oct 10 2002 [corrected by Peter Pein, Mar 09 2009]
a(n) = 3*A001109(n) - A001109(n-1), n >= 1. - Barry E. Williams and Wolfdieter Lang, May 05 2000
For n >= 1, a(n) = A001652(n) - A001652(n-1). - Charlie Marion, Jul 01 2003
From Paul Barry, Sep 18 2003: (Start)
a(n) = ((-1+sqrt(2))^n + (1+sqrt(2))^n + (1-sqrt(2))^n + (-1-sqrt(2))^n)/4 (with interpolated zeros).
E.g.f.: cosh(x)*cosh(sqrt(2)x) (with interpolated zeros). (End)
For n > 0, a(n)^2 + 1 = 2*A001653(n-1)*A001653(n). - Charlie Marion, Dec 21 2003
a(n)^2 + a(n+1)^2 = 2*(A001653(2*n+1) - A001652(2*n)). - Charlie Marion, Mar 17 2003
a(n) = Sum_{k >= 0} binomial(2*n, 2*k)*2^k = Sum_{k >= 0} A086645(n, k)*2^k. - Philippe Deléham, Feb 29 2004
a(n)*A002315(n+k) = A001652(2*n+k) + A001652(k) + 1; for k > 0, a(n+k)*A002315(n) = A001652(2*n+k) - A001652(k-1). - Charlie Marion, Mar 17 2003
For n > k, a(n)*A001653(k) = A011900(n+k) + A053141(n-k-1). For n <= k, a(n)*A001653(k) = A011900(n+k) + A053141(k-n). - Charlie Marion, Oct 18 2004
A053141(n+1) + A055997(n+1) = a(n+1) + A001109(n+1). - Creighton Dement, Sep 16 2004
a(n+1) - A001542(n+1) = A090390(n+1) - A046729(n) = A001653(n); a(n+1) - 4*A079291(n+1) = (-1)^(n+1). Formula generated by the floretion - .5'i + .5'j - .5i' + .5j' - 'ii' + 'jj' - 2'kk' + 'ij' + .5'ik' + 'ji' + .5'jk' + .5'ki' + .5'kj' + e. - Creighton Dement, Nov 16 2004
a(n) = sqrt( A055997(2*n) ). - Alexander Adamchuk, Nov 24 2006
a(2n) = A056771(n). a(2*n+1) = 3*A077420(n). - Alexander Adamchuk, Feb 01 2007
a(n) = (A000129(n)^2)*4 + (-1)^n. - Vim Wenders, Mar 28 2007
2*a(k)*A001653(n)*A001653(n+k) = A001653(n)^2 + A001653(n+k)^2 + A001542(k)^2. - Charlie Marion, Oct 12 2007
a(n) = A001333(2*n). - Ctibor O. Zizka, Aug 13 2008
A028982(a(n)-1) + 2 = A028982(a(n)+1). - Juri-Stepan Gerasimov, Mar 28 2011
a(n) = 2*A001108(n) + 1. - Paul Weisenhorn, Dec 17 2011
a(n) = sqrt(2*x^2 + 1) with x being A001542(n). - Zak Seidov, Jan 30 2013
a(2n) = 2*a(n)^2 - 1 = a(n)^2 + 2*A001542(n)^2. a(2*n+1) = 1 + 2*A002315(n)^2. - Steven J. Haker, Dec 04 2013
a(n) = 3*a(n-1) + 4*A001542(n-1); e.g., a(4) = 99 = 3*17 + 4*12. - Zak Seidov, Dec 19 2013
a(n) = cos(n * arccos(3)) = cosh(n * log(3 + 2*sqrt(2))). - Daniel Suteu, Jul 28 2016
From Ilya Gutkovskiy, Jul 28 2016: (Start)
Inverse binomial transform of A084130.
Exponential convolution of A000079 and A084058.
Sum_{n>=0} (-1)^n*a(n)/n! = cosh(2*sqrt(2))/exp(3) = 0.4226407909842764637... (End)
a(2*n+1) = 2*a(n)*a(n+1) - 3. - Timothy L. Tiffin, Oct 12 2016
a(n) = a(-n) for all n in Z. - Michael Somos, Jan 20 2017
a(2^n) = A001601(n+1). - A.H.M. Smeets, May 28 2017
a(A298210(n)) = A002350(2*n^2). - A.H.M. Smeets, Jan 25 2018
a(n) = S(n, 6) - 3*S(n-1, 6), for n >= 0, with S(n, 6) = A001109(n+1), (Chebyshev S of A049310). See the first comment and the formula a(n) = T(n, 3). - Wolfdieter Lang, Nov 22 2020
From Peter Bala, Dec 31 2021: (Start)
a(n) = [x^n] (3*x + sqrt(1 + 8*x^2))^n.
The Gauss congruences a(n*p^k) == a(n*p^(k-1)) hold for all prime p and positive integers n and k.
O.g.f. A(x) = 1 + x*d/dx(log(B(x))), where B(x) = 1/sqrt(1 - 6*x + x^2) is the o.g.f. of A001850. (End)
From Peter Bala, Aug 17 2022: (Start)
Sum_{n >= 1} 1/(a(n) - 2/a(n)) = 1/2.
Sum_{n >= 1} (-1)^(n+1)/(a(n) + 1/a(n)) = 1/4.
Sum_{n >= 1} 1/(a(n)^2 - 2) = 1/2 - 1/sqrt(8). (End)
From Peter Bala, Jun 23 2025: (Start)
Product_{n >= 0} (1 + 1/a(2^n)) = sqrt(2).
Product_{n >= 0} (1 - 1/(2*a(2^n))) = (4/7)*sqrt(2). See A002812. (End)

A001566 a(0) = 3; thereafter, a(n) = a(n-1)^2 - 2.

Original entry on oeis.org

3, 7, 47, 2207, 4870847, 23725150497407, 562882766124611619513723647, 316837008400094222150776738483768236006420971486980607
Offset: 0

Views

Author

Keywords

Comments

Expansion of 1/phi: 1/phi = (1-1/3)*(1-1/((3-1)*7))*(1-1/(((3-1)*7-1)*47))*(1-1/((((3-1)*7-1)*47-1)*2207))... (phi being the golden ration (1+sqrt(5))/2). - Thomas Baruchel, Nov 06 2003
An infinite coprime sequence defined by recursion. - Michael Somos, Mar 14 2004
Starting with 7, the terms end with 7,47,07,47,07,..., of the form 8a+7 where a = 0,1,55,121771,... Conjecture: Every a is squarefree, every other a is divisible by 55, the a's are a subset of A046194, the heptagonal triangular numbers (the first, 2nd, 3rd, 6th, 11th, ?, ... terms). - Gerald McGarvey, Aug 08 2004
Also the reduced numerator of the convergents to sqrt(5) using Newton's recursion x = (5/x+x)/2. - Cino Hilliard, Sep 28 2008
The subsequence of primes begins a(n) for n = 0, 1, 2, 3. - Jonathan Vos Post, Feb 26 2011
We have Sum_{n=0..N} a(n)^2 = 2*(N+1) + Sum_{n=1..N+1} a(n), Sum_{n=0..N} a(n)^4 = 5*(Sum_{n=1..N+1} a(n)) + a(N+1)^2 + 6*N -3, etc. which is very interesting with respect to the fact that a(n) = Lucas(2^(n+1)); see W. Webb's problem in Witula-Slota's paper. - Roman Witula, Nov 02 2012
From Peter Bala, Nov 11 2012: (Start)
The present sequence corresponds to the case x = 3 of the following general remarks.
The recurrence a(n+1) = a(n)^2 - 2 with initial condition a(0) = x > 2 has the solution a(n) = ((x + sqrt(x^2 - 4))/2)^(2^n) + ((x - sqrt(x^2 - 4))/2)^(2^n).
We have the product expansion sqrt(x + 2)/sqrt(x - 2) = Product_{n>=0} (1 + 2/a(n)) (essentially due to Euler - see Mendes-France and van der Poorten). Another expansion is sqrt(x^2 - 4)/(x + 1) = Product_{n>=0} (1 - 1/a(n)), which follows by iterating the identity sqrt(x^2 - 4)/(x + 1) = (1 - 1/x)*sqrt(y^2 - 4)/(y + 1), where y = x^2 - 2.
The sequence b(n) := a(n) - 1 satisfies b(n+1) = b(n)^2 + 2*b(n) - 2. Cases currently in the database are A145502 through A145510. The sequence c(n) := a(n)/2 satisfies c(n+1) = 2*c(n)^2 - 1. Cases currently in the database are A002812, A001601, A005828, A084764 and A084765.
(End)
E. Lucas in Section XIX of "The Theory of Simply Periodic Numerical Functions" (page 56 of English translation) equation "(127) (1-sqrt(5))/2 = -1/1 + 1/3 + 1/(3*7) + 1/(3*7*47) + 1/(3*7*47*2207) + ..." - Michael Somos, Oct 11 2022
Let b(n) = a(n) - 3. The sequence {b(n)} appears to be a strong divisibility sequence, that is, gcd(b(n),b(m)) = b(gcd(n,m)) for n, m >= 1. - Peter Bala, Dec 08 2022
The number of digits of a(n) is given by A094057(n+1). - Hans J. H. Tuenter, Jul 29 2025

Examples

			From _Cino Hilliard_, Sep 28 2008: (Start)
Init x=1;
x = (5/1 + 1)/2 = 3/1;
x = (5/3 + 3)/2 = 7/3;
x = ((5/7)/3 + 7/3)/2 = 47/21;
x = ((5/47)/21 + 47/21)/2 = 2207/987;
(2207/987)^2 = 5.000004106... (End)
		

References

  • L. E. Dickson, History of the Theory of Numbers. Carnegie Institute Public. 256, Washington, DC, Vol. 1, 1919; Vol. 2, 1920; Vol. 3, 1923, see vol. 1, p. 397.
  • E.-B. Escott, Note #1741, L'Intermédiaire des Mathématiciens, 8 (1901), page 13. - N. J. A. Sloane, Mar 02 2022
  • G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers. 3rd ed., Oxford Univ. Press, 1954, p. 223.
  • Édouard Lucas, Nouveaux théorèmes d'arithmétique supérieure, Comptes Rend., 83 (1876), 1286-1288.
  • Paulo Ribenboim, The Little Book of Bigger Primes, Springer-Verlag NY 2004. See p. 7.
  • 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).

Crossrefs

Lucas numbers (A000032) with subscripts that are powers of 2 greater than 1 (Herbert S. Wilf). Cf. A000045.
Cf. A003010 (starting with 4), A003423 (starting with 6), A003487 (starting with 5).
Cf. A058635. - Artur Jasinski, Oct 05 2008

Programs

  • Maple
    a:= n-> simplify(2*ChebyshevT(2^n, 3/2), 'ChebyshevT'):
    seq(a(n), n=0..8);
  • Mathematica
    NestList[#^2-2&,3,10] (* Harvey P. Dale, Dec 17 2014 *)
    Table[LucasL[2^n], {n, 1, 8}] (* Amiram Eldar, Oct 22 2020 *)
  • Maxima
    a[0]:3$
    a[n]:=a[n-1]^2-2$
    A001566(n):=a[n]$
    makelist(A001566(n),n,0,7); /* Martin Ettl, Nov 12 2012 */
  • PARI
    {a(n) = if( n<1, 3*(n==0), a(n-1)^2 - 2)}; /* Michael Somos, Mar 14 2004 */
    
  • PARI
    g(n,p) = x=1;for(j=1,p,x=(n/x+x)/2;print1(numerator(x)","));
    g(5,8) \\ Cino Hilliard, Sep 28 2008
    
  • PARI
    {a(n) = my(w = quadgen(5)); if( n<0, 0, n++; imag( (2*w - 1) * w^2^n ))}; /* Michael Somos, Nov 30 2014 */
    
  • PARI
    {a(n) = my(y = x^2-x-1); if( n<0, 0, n++; for(i=1, n, y = polgraeffe(y)); -polcoeff(y, 1))}; /* Michael Somos, Nov 30 2014 */
    

Formula

a(n) = Fibonacci(2^(n+2))/Fibonacci(2^(n+1)) = A058635(n+2)/A058635(n+1). - Len Smiley, May 08 2000, and Artur Jasinski, Oct 05 2008
a(n) = ceiling(c^(2^n)) where c = (3+sqrt(5))/2 = tau^2 is the largest root of x^2-3*x+1=0. - Benoit Cloitre, Dec 03 2002
a(n) = round(G^(2^n)) where G is the golden ratio (A001622). - Artur Jasinski, Sep 22 2008
a(n) = (G^(2^(n+1))-(1-G)^(2^(n+1)))/((G^(2^n))-(1-G)^(2^n)) = G^(2^n)+(1-G)^(2^n) = G^(2^n)+(-G)^(-2^n) where G is the golden ratio. - Artur Jasinski, Oct 05 2008
a(n) = 2*cosh(2^(n+1)*arccosh(sqrt(5)/2)). - Artur Jasinski, Oct 09 2008
a(n) = Fibonacci(2^(n+1)-1) + Fibonacci(2^(n+1)+1). (3-sqrt(5))/2 = 1/3 + 1/(3*7) + 1/(3*7*47) + 1/(3*7*47*2207) + ... (E. Lucas). - Philippe Deléham, Apr 21 2009
a(n)*(a(n+1)-1)/2 = A023039(2^n). - M. F. Hasler, Sep 27 2009
For n >= 1, a(n) = 2 + Product_{i=0..n-1} (a(i) + 2). - Vladimir Shevelev, Nov 28 2010
a(n) = 2*T(2^n,3/2) where T(n,x) is the Chebyshev polynomial of the first kind. - Leonid Bedratyuk, Mar 17 2011
From Peter Bala, Oct 31 2012: (Start)
Engel expansion of 1/2*(3 - sqrt(5)). Thus 1/2*(3 - sqrt(5)) = 1/3 + 1/(3*7) + 1/(3*7*47) + ... as noted above by Deleham. See Liardet and Stambul.
sqrt(5)/4 = Product_{n>=0} (1 - 1/a(n)).
sqrt(5) = Product_{n>=0} (1 + 2/a(n)). (End)
a(n) - 1 = A145502(n+1). - Peter Bala, Nov 11 2012
a(n) == 2 (mod 9), for n > 1. - Ivan N. Ianakiev, Dec 25 2013
From Amiram Eldar, Oct 22 2020: (Start)
a(n) = A000032(2^(n+1)).
Sum_{k>=0} 1/a(k) = -1 + A338304. (End)
a(n) = (A000045(m+2^(n+2))+A000045(m))/A000045(m+2^(n+1)) for any m>=0. - Alexander Burstein, Apr 10 2021
a(n) = 2*cos(2^n*arccos(3/2)). - Peter Luschny, Oct 12 2022
a(n) == -1 ( mod 2^(n+2) ). - Peter Bala, Nov 07 2022
a(n) = 5*Fibonacci(2^n)^2+2 = 5*A058635(n)^2+2, for n>0. - Jianglin Luo, Sep 21 2023
Sum_{n>=0} a(n)/Fibonacci(2^(n+2)) = A094874 (Sanford, 2016). - Amiram Eldar, Mar 01 2024

A051009 Reduced denominators of Newton's iteration for sqrt(2).

Original entry on oeis.org

1, 2, 12, 408, 470832, 627013566048, 1111984844349868137938112, 3497379255757941172020851852070562919437964212608
Offset: 1

Views

Author

Keywords

Comments

(2^n)-th Pell numbers. - Sergio Falcon, Dec 04 2008
For n>1, Egyptian fraction expansion of 2-sqrt(2), i.e., 2-sqrt(2) = 1/2 + 1/12 + 1/408 + 1/470832 + ... - Simon Plouffe, Feb 22 2011

Examples

			G.f. = x + 2*x^2 + 12*x^3 + 408*x^4 + 470832*x^5 + ...
		

Crossrefs

Programs

  • Mathematica
    Table[Simplify[Expand[(1/(2 Sqrt[2])) ((1 + Sqrt[2])^(2^n) - (1 - Sqrt[2])^(2^n))]], {n, 0, 7}] (* Artur Jasinski, Oct 10 2008 *)
    Do[Print[Fibonacci[2^n,2]],{n,0,10}] (* Sergio Falcon, Dec 04 2008 *)

Formula

a(n) = A000129(2^n).
a(n) = 2*a(n-1)*A001601(n-1). - Joe Keane (jgk(AT)jgk.org), May 31 2002
sqrt(2) = 1 + 1/2 - Sum_{n>=3} (1/a(n)). - Donald S. McDonald, Jan 21 2003
For n>1, a(n) = 2*a(n-1)*sqrt(2*a(n-1)^2+1). - Mario Catalani (mario.catalani(AT)unito.it), May 27 2003
For n>0: a(n) = Sum_{r=0..2^(n-1)-1} binomial(2^n, 2*r+1)*2^r. - Mario Catalani (mario.catalani(AT)unito.it), May 30 2003
For n>=4, a(n) = A098890(n-2) - A098890(n-3). - Kieren MacMillan, Dec 19 2007
a(n+1) = (1/(2*sqrt(2)))*((1 + sqrt(2))^(2^n) - (1 - sqrt(2))^(2^n)). - Artur Jasinski, Oct 10 2008
For n>0, a(n) = sqrt((A001601(n)^2-1)/2). - Jose Hortal, Apr 14 2012
a(1)=1, a(2)=2, a(n) = 2 * a(n-1) * cos(2^(n-3) * arccos(3)). - Daniel Suteu, Dec 01 2016
0 = a(n)^2*(2*a(n+1) + a(n+2)) - a(n+1)^3 if n>0. - Michael Somos, Dec 01 2016
a(n) = A001542(2^(n-2)). - A.H.M. Smeets, May 28 2017

A003423 a(n) = a(n-1)^2 - 2, with a(0) = 6.

Original entry on oeis.org

6, 34, 1154, 1331714, 1773462177794, 3145168096065837266706434, 9892082352510403757550172975146702122837936996354
Offset: 0

Views

Author

Keywords

Comments

If x is either of the roots of x^2 - 6*x + 1 = 0 (i.e., x = 3 +- 2*sqrt(2)), then x^(2^n) + 1 = a(n)*x^(2^(n-1)). For example, x^8 + 1 = 1154*x^4. - James East, Oct 05 2018

References

  • L. E. Dickson, History of the Theory of Numbers. Carnegie Institute Public. 256, Washington, DC, Vol. 1, 1919; Vol. 2, 1920; Vol. 3, 1923, see vol. 1, p. 376.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A001566 (starting with 3), A003010 (starting with 4), A003487 (starting with 5).
Cf. A145505.

Programs

  • Maple
    a:= n-> simplify(2*ChebyshevT(2^n, 3), 'ChebyshevT'):
    seq(a(n), n=0..7);
  • Mathematica
    a[1] := 6; a[n_] := a[n - 1]^2 - 2; Table[a[n], {n, 1, 8}] (* Stefan Steinerberger, Apr 11 2006 *)
    Table[Round[(1 + Sqrt[2])^(2^n)], {n, 1, 7}] (* Artur Jasinski, Sep 25 2008 *)
    NestList[#^2-2&,6,10] (* Harvey P. Dale, Nov 11 2011 *)
  • PARI
    a(n)=if(n<1, 6*(n==0), a(n-1)^2-2)

Formula

a(n) = ceiling(c^(2^n)) where c = 3 + 2*sqrt(2) is the largest root of x^2 - 6x + 1 = 0. - Benoit Cloitre, Dec 03 2002
From Paul D. Hanna, Aug 11 2004: (Start)
a(n) = (3+sqrt(8))^(2^n) + (3-sqrt(8))^(2^n).
Sum_{n>=0} 1/(Product_{k=0..n} a(k) ) = 3 - sqrt(8). (End)
a(n) = 2*A001601(n+1).
a(n-1) = Round((1 + sqrt(2))^(2^n)). - Artur Jasinski, Sep 25 2008
a(n) = 2*T(2^n,3) where T(n,x) is the Chebyshev polynomial of the first kind. - Leonid Bedratyuk, Mar 17 2011
Engel expansion of 3 - 2*sqrt(2). Thus 3 - 2*sqrt(2) = 1/6 + 1/(6*34) + 1/(6*34*1154) + .... See Liardet and Stambul. - Peter Bala, Oct 31 2012
From Peter Bala, Nov 11 2012: (Start)
4*sqrt(2)/7 = Product_{n >= 0} (1 - 1/a(n))
sqrt(2) = Product_{n >= 0} (1 + 2/a(n)).
a(n) - 1 = A145505(n+1). (End)
From Peter Bala, Dec 06 2022: (Start)
a(n) = 2 + 4*Product_{k = 0 ..n-1} (a(k) + 2) for n >= 1.
Let b(n) = a(n) - 6. The sequence {b(n)} appears to be a strong divisibility sequence, that is, gcd(b(n),b(m)) = b(gcd(n,m)) for n, m >= 1. (End)

A003487 a(n) = a(n-1)^2 - 2, with a(0) = 5.

Original entry on oeis.org

5, 23, 527, 277727, 77132286527, 5949389624883225721727, 35395236908668169265765137996816180039862527, 1252822795820745419377249396736955608088527968701950139470082687906021780162741058825727
Offset: 0

Views

Author

Keywords

Comments

The next term has 175 digits. - Harvey P. Dale, Feb 19 2015

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A001566 (starting with 3), A003010 (starting with 4), A003423 (starting with 6). A001601, A145504.

Programs

  • Maple
    a:= n-> simplify(2*ChebyshevT(2^n, 1/2*5), 'ChebyshevT'):
    seq(a(n), n=0..7);
  • Mathematica
    NestList[#^2-2&,5,10] (* Harvey P. Dale, Feb 19 2015 *)
    a[ n_] := If[ n < 0, 0, 2 ChebyshevT[2^n, 5/2]]; (* Michael Somos, Dec 06 2016 *)
  • PARI
    {a(n) = if( n<0, 0, polchebyshev(2^n, 1, 5/2) * 2)}; /* Michael Somos, Dec 06 2016 */

Formula

a(n) = ceiling(c^(2^n)) where c=(5+sqrt(21))/2 is the largest root of x^2-5x+1=0. - Benoit Cloitre, Dec 03 2002
a(n) = 2*T(2^n,5/2) where T(n,x) is the Chebyshev polynomial of the first kind. - Leonid Bedratyuk, Mar 17 2011
Engel expansion of 1/2*(5 - sqrt(21)). Thus 1/2*(5 - sqrt(21)) = 1/5 + 1/(5*23) + 1/(5*23*527) + .... See Liardet and Stambul. Cf. A001566, A003010 and A003423. - Peter Bala, Oct 31 2012
From Peter Bala, Nov 11 2012: (Start)
a(n) = ((5 + sqrt(21))/2)^(2^n) + ((5 - sqrt(21))/2)^(2^n).
sqrt(21)/6 = Product_{n = 0..oo} (1 - 1/a(n)).
sqrt(7/3) = Product_{n = 0..oo} (1 + 2/a(n)).
a(n) - 1 = A145504(n+1). (End)
a(n) = A003501(2^n). - Michael Somos, Dec 06 2016
From Peter Bala, Dec 06 2022: (Start)
a(n) = 2 + 3*Product_{k = 0 ..n-1} (a(k) + 2) for n >= 1.
Let b(n) = a(n) - 5. The sequence {b(n)} appears to be a strong divisibility sequence, that is, gcd(b(n),b(m)) = b(gcd(n,m)) for n, m >= 1. (End)

Extensions

One more term from Harvey P. Dale, Feb 19 2015

A220336 A modified Engel expansion for 4*sqrt(2) - 5.

Original entry on oeis.org

2, 4, 6, 2, 18, 34, 2, 578, 1154, 2, 665858, 1331714, 2, 886731088898, 1773462177794, 2, 1572584048032918633353218, 3145168096065837266706434, 2, 4946041176255201878775086487573351061418968498178, 9892082352510403757550172975146702122837936996354
Offset: 1

Views

Author

Peter Bala, Dec 12 2012

Keywords

Comments

For a brief description of the modified Engel expansion of a real number see A220335.
Let p >= 2 be an integer and set Q(p) = (p - 1)*sqrt(p^2 - 1) - (p^2 - p - 1), so Q(3) = 4*sqrt(2) - 5. Iterating the identity Q(p) = 1/2 + 1/(2*(p+1)) + 1/(2*(p+1)*(2*p)) + 1/(2*(p+1)*(2*p))*Q(2*p^2-1) leads to a representation for Q(p) as an infinite series of unit fractions. The sequence of denominators of these unit fractions can be used to find the modified Engel expansion of Q(p). For further details see the Bala link. The present sequence is the case p = 3. For other cases see A220335 (p = 2), A220337 (p = 4) and A220338 (p = 5).

Crossrefs

Cf. A001601, A028257, A220335 (p = 2), A220337 (p = 4), A220338 (p = 5).

Formula

Define the map h(x) := floor(1/x)*(x*ceiling(1/x) - 1). Let x = 4*sqrt(2) - 5. Then a(1) = ceiling(1/x) and for n >= 2, a(n) = floor(1/h^(n-2)(x))*ceiling(1/h^(n-1)(x)), where h^(n)(x) denotes the n-th iterate of the map h(x), with the convention h^(0)(x) = x.
a(3*n+2) = 1/2*{2 + (1+sqrt(2))^(2^(n+1)) + (1-sqrt(2))^(2^(n+1))},
a(3*n+3) = {(1 + sqrt(2))^(2^(n+1)) + (1 - sqrt(2))^(2^(n+1))}, both
for n >= 0.
For n >= 0, a(3*n+1) = 2. For n >= 1, a(3*n+2) = 2*A001601(n)^2 and a(3*n+3) = 4*A001601(n)^2 - 2.
Recurrence equations:
For n >= 1, a(3*n+2) = 2*{a(3*n-1)^2 - 2*a(3*n-1) + 1} and
a(3*n+3) = 2*a(3*n+2) - 2.
Put P(n) = Product_{k=1..n} a(k). Then we have the infinite Egyptian fraction representation 4*sqrt(2) - 5 = Sum_{n>=1} 1/P(n) = 1/2 + 1/(2*4) + 1/(2*4*6) + 1/(2*4*6*2) + 1/(2*4*6*2*18) + ....

A005828 a(n) = 2*a(n-1)^2 - 1, a(0) = 4, a(1) = 31.

Original entry on oeis.org

4, 31, 1921, 7380481, 108942999582721, 23737154316161495960243527681, 1126904990058528673830897031906808442930637286502826475521
Offset: 0

Views

Author

Keywords

Comments

An infinite coprime sequence defined by recursion. - Michael Somos, Mar 14 2004
The next term has 115 digits. - Harvey P. Dale, May 25 2018

References

  • Jeffrey Shallit, personal communication.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A001091, A001601, A002812, A084764 (essentially the same).

Programs

  • Magma
    [n le 2 select 2^(3*n-1)-n+1 else 2*Self(n-1)^2 - 1: n in [1..10]]; // G. C. Greubel, May 17 2023
    
  • Mathematica
    NestList[2#^2-1&,4,10] (* Harvey P. Dale, May 25 2018 *)
  • PARI
    a(n)=if(n<1,4*(n==0),2*a(n-1)^2-1)
    
  • PARI
    a(n)=if(n<0,0,subst(poltchebi(2^n),x,4))
    
  • SageMath
    [chebyshev_T(2^n, 4) for n in range(11)] # G. C. Greubel, May 17 2023

Formula

a(n) = A001091(2^n).
From Peter Bala, Nov 11 2012, (Start)
a(n) = (1/2)*((4 + sqrt(15))^(2^n) + (4 - sqrt(15))^(2^n)).
2*sqrt(15)/9 = Product_{n>=0} (1 - 1/(2*a(n))).
sqrt(5/3) = Product_{n>=0} (1 + 1/a(n)).
See A002812 for general properties of the recurrence a(n+1) = 2*a(n)^2 - 1.
(End)
a(n) = T(2^n,4), where T(n,x) denotes the n-th Chebyshev polynomial of the first kind. - Peter Bala, Feb 01 2017
a(n) = cos(2^n*arccos(4)). - Peter Luschny, Oct 12 2022

A074840 Numerators a(n) of fractions slowly converging to sqrt(2): let a(1) = 0, b(n) = n - a(n); if (a(n) + 1) / b(n) < sqrt(2), then a(n+1) = a(n) + 1, else a(n+1)= a(n).

Original entry on oeis.org

0, 1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 9, 10, 11, 11, 12, 12, 13, 14, 14, 15, 15, 16, 16, 17, 18, 18, 19, 19, 20, 21, 21, 22, 22, 23, 24, 24, 25, 25, 26, 26, 27, 28, 28, 29, 29, 30, 31, 31, 32, 32, 33, 33, 34, 35, 35, 36, 36, 37, 38, 38, 39, 39, 40, 41, 41, 42, 42, 43, 43
Offset: 1

Views

Author

Robert A. Stump (bee_ess107(AT)msn.com), Sep 09 2002

Keywords

Comments

a(n) + b(n) = n and as n -> +infinity, a(n) / b(n) converges to sqrt(2). For all n, a(n) / b(n) < sqrt(2).

Examples

			a(6)= 3 so b(6) = 6 - 3 = 3. a(7) = 4 because (a(6) + 1) / b(6) = 4/3 which is < sqrt(2). So b(7) = 7 - 4 = 3. a(8) = 4 because (a(7) + 1) / b(7) = 5/3 which is not < sqrt(2).
		

Crossrefs

Programs

  • Magma
    [Floor(n*(2-Sqrt(2))): n in [1..30]]; // G. C. Greubel, Nov 28 2017
  • Mathematica
    Table[Floor[n*(2 - Sqrt[2])], {n, 1, 50}] (* G. C. Greubel, Nov 28 2017 *)
  • PARI
    for(n=1,30, print1(floor(n*(2-sqrt(2))), ", ")) \\ G. C. Greubel, Nov 28 2017
    

Formula

a(1) = 0. b(n) = n - a(n). If (a(n) + 1) / b(n) < sqrt(2), then a(n+1) = a(n) + 1, else a(n+1) = a(n).
a(n) = floor(n*(2-sqrt(2))). - Vladeta Jovovic, Oct 04 2003
a(n) = 2*n - ceiling(n*sqrt(2)). - Clark Kimberling, Sep 09 2011
Partial sums of A144611. - R. J. Mathar, May 30 2025

A219508 Pierce expansion of 4*(3 - 2*sqrt(2)).

Original entry on oeis.org

1, 3, 16, 17, 72, 577, 2312, 665857, 2663432, 886731088897, 3546924355592, 1572584048032918633353217, 6290336192131674533412872, 4946041176255201878775086487573351061418968498177
Offset: 0

Views

Author

Peter Bala, Nov 23 2012

Keywords

Comments

For x in the open interval (0,1) define the map f(x) = 1 - x*floor(1/x). The n-th term (n >= 0) in the Pierce expansion of x is given by floor(1/f^(n)(x)), where f^(n)(x) denotes the n-th iterate of the map f, with the convention that f^(0)(x) = x.
Paradis et al. have determined the Pierce expansion of the quadratic irrationality 2*(p - 1)*(p - sqrt(p^2 - 1)), p a positive integer greater than or equal to 3. The present sequence is the case p = 3. For other cases see A219509 (p = 5), A219510 (p = 7) and A219511 (p = 9).
Compare this Pierce expansion for 4*(3 - 2*sqrt(2)), with terms determined by quadratic recurrences, with the Pierce expansion of 3 - 2*sqrt(2) given in A006275, where the terms are determined by cubic recurrences.

Crossrefs

Cf. A001601, A006275, A219509 (p = 5), A219510 (p = 7), A219511 (p = 9).

Programs

  • Mathematica
    PierceExp[A_, n_] := Join[Array[1 &, Floor[A]], First@Transpose@ NestList[{Floor[1/Expand[1 - #[[1]] #[[2]]]], Expand[1 - #[[1]] #[[2]]]} &, {Floor[1/(A - Floor[A])], A - Floor[A]}, n - 1]]; PierceExp[N[4*(3 - 2*Sqrt[2]) , 7!], 10] (* G. C. Greubel, Nov 14 2016 *)
  • PARI
    r=(3 + 2*sqrt(2))/4; for(n=1, 10, print(floor(r), ", "); r=r/(r-floor(r))) \\ G. C. Greubel, Nov 15 2016

Formula

a(2*n) = 2*{(1 + sqrt(2))^(2^n) + (1 - sqrt(2))^(2^n) + 2} for n >= 1.
a(2*n-1) = 1/2*{(1 + sqrt(2))^(2^n) + (1 - sqrt(2))^(2^n)} for n >= 1.
Recurrence equations: a(0) = 1, a(1) = 3 and for n >= 1, a(2*n) = 4*(a(2*n-1) + 1) and a(2*n+1) = 2*{a(2*n-1)}^2 - 1.
It follows that a(2*n) = 8*a(2*n-3)^2 for n >=2.
4*(3 - 2*sqrt(2)) = sum {n >= 0} 1/product {k = 0..n} a(k) = 1 - 1/3 + 1/(3*16) - 1/(3*16*17) + 1/(3*16*17*72) - ....
a(2*n) = 8*A001601(n-1)^2 for n >= 2
a(2*n-1) = A001601(n) for n >= 1.

A244012 Numerators of rational approximations to sqrt(7) obtained from Newton's method.

Original entry on oeis.org

2, 11, 233, 108497, 23543191457, 1108563727961872518977, 2457827077905448997994482872789298261401217, 12081827889770476116093110581355561229584727594431650162181251776430351279198649072897
Offset: 0

Views

Author

N. J. A. Sloane, Jun 18 2014

Keywords

Examples

			2, 11/4, 233/88, 108497/41008, 23543191457/8898489952, ...
		

Crossrefs

Cf. A244013 (denominators).
The analogs for sqrt(k), k=2,3,5,6,7 are: A001601/A051009, A002812/A071579, A081459/A081460, A244014/A244015, A244012/A244013.

Programs

  • Maple
    N:=7;
    s:=[floor(sqrt(N))];
    M:=8;
    for n from 1 to M do
    x:=s[n];
    h:=(N-x^2)/(2*x);
    s:=[op(s),x+h]; od:
    lprint(s);
    s1:=map(numer,s);
    s2:=map(denom,s);
Showing 1-10 of 21 results. Next