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.

A002193 Decimal expansion of square root of 2.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Sometimes called Pythagoras's constant.
Its continued fraction expansion is [1; 2, 2, 2, ...] (see A040000). - Arkadiusz Wesolowski, Mar 10 2012
The discovery of irrational numbers is attributed to Hippasus of Metapontum, who may have proved that sqrt(2) is not a rational number; thus sqrt(2) is often regarded as the earliest known irrational number. - Clark Kimberling, Oct 12 2017
From Clark Kimberling, Oct 12 2017: (Start)
In the first million digits,
0 occurs 99814 times;
1 occurs 99925 times;
2 occurs 100436 times;
3 occurs 100190 times;
4 occurs 100024 times;
5 occurs 100155 times;
6 occurs 99886 times;
7 occurs 100008 times;
8 occurs 100441 times;
9 occurs 100121 times. (End)
Diameter of a sphere whose surface area equals 2*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 10 2018
Sqrt(2) = 1 + area of region bounded by y = sin x, y = cos x, and x = 0. - Clark Kimberling, Jul 03 2020
Also aspect ratio of the ISO 216 standard for paper sizes. - Stefano Spezia, Feb 24 2021
The standard deviation of a roll of a 5-sided die. - Mohammed Yaseen, Feb 23 2023
From Michal Paulovic, Mar 22 2023: (Start)
The length of a unit square diagonal.
The infinite tetration (power tower) sqrt(2)^(sqrt(2)^(sqrt(2)^(...))) equals 2 from the identity (x^(1/x))^((x^(1/x))^((x^(1/x))^(...))) = x where 1/e <= x <= e. (End)

Examples

			1.41421356237309504880168872420969807856967187537694807317667...
		

References

  • John H. Conway and Richard K. Guy, The Book of Numbers, New York: Springer-Verlag, 1996. See pp. 24, 182.
  • Steven R. Finch, Mathematical Constants, Encyclopedia of Mathematics and its Applications, vol. 94, Cambridge University Press, Section 1.1.
  • David Flannery, The Square Root of 2, Copernicus Books Springer-Praxis Pub. 2006.
  • Martin Gardner, Gardner's Workout, Chapter 2 "The Square Root of 2=1.414213562373095..." pp. 9-19 A. K. Peters MA 2002.
  • Jan Gullberg, Mathematics from the Birth of Numbers, W. W. Norton & Co., NY & London, 1997, §3.4 Irrational Numbers and §4.4 Powers and Roots, pp. 84, 145.
  • Alfred S. Posamentier, Math Charmers, Tantalizing Tidbits for the Mind, Prometheus Books, NY, 2003, pages 64-67.
  • B. Rittaud, Le fabuleux destin de sqrt(2), Le Pommier, Paris 2006.
  • 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).
  • Jerome Spanier and Keith B. Oldham, "Atlas of Functions", Hemisphere Publishing Corp., 1987, chapter 60, page 605.
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers. Penguin Books, NY, 1986, Revised edition 1987, pp. 34-35.

Crossrefs

Cf. A004539 (binary version).

Programs

  • Haskell
    -- After Michael B. Porter's PARI program.
    a002193 n = a002193_list !! (n-1)
    a002193_list = w 2 0 where
    w x r = dig : w (100 * (x - (20 * r + dig) * dig)) (10 * r + dig)
    where dig = head (dropWhile (\d -> (20 * r + d) * d < x) [0..]) - 1
    -- Reinhard Zumkeller, Nov 22 2013
  • Maple
    Digits:=100; evalf(sqrt(2)); # Wesley Ivan Hurt, Dec 04 2013
  • Mathematica
    RealDigits[N[2^(1/2), 128]] (* Vladimir Joseph Stephan Orlovsky, Dec 25 2008 *)
  • Maxima
    fpprec: 100$ ev(bfloat(sqrt(2))); /* Martin Ettl, Oct 17 2012 */
    
  • PARI
    default(realprecision, 20080); x=sqrt(2); for (n=1, 20000, d=floor(x); x=(x-d)*10; write("b002193.txt", n, " ", d)); \\ Harry J. Smith, Apr 21 2009
    
  • PARI
    r=0; x=2; /* Digit-by-digit method */
    for(digits=1,100,{d=0;while((20*r+d)*d <= x,d++);
    d--; /* while loop overshoots correct digit */
    print(d);x=100*(x-(20*r+d)*d);r=10*r+d}) \\ Michael B. Porter, Oct 20 2009
    
  • PARI
    \\ Works in v2.15.0; n = 100 decimal places
    my(n=100); digits(floor(10^n*quadgen(8))) \\ Michal Paulovic, Mar 22 2023
    

Formula

Sqrt(2) = 14 * Sum_{n >= 0} (A001790(n)/2^A005187(floor(n/2)) * 10^(-2n-1)) where A001790(n) are numerators in expansion of 1/sqrt(1-x) and the denominators in expansion of 1/sqrt(1-x) are 2^A005187(n). 14 = 2*7, see A010503 (expansion of 1/sqrt(2)). - Gerald McGarvey, Jan 01 2005
Limit_{n -> +oo} (1/n)*(Sum_{k = 1..n} frac(sqrt(1+zeta(k+1)))) = 1/(1+sqrt(2)). - Yalcin Aktar, Jul 14 2005
sqrt(2) = 2 + n*A167199(n-1)/A167199(n) as n -> infinity (conjecture). - Mats Granvik, Oct 30 2009
sqrt(2) = limit as n goes to infinity of A179807(n+1)/A179807(n) - 1. - Mats Granvik, Feb 15 2011
sqrt(2) = Product_{l=0..k-1} 2*cos((2*l+1)*Pi/(4*k)) = (Product_{l=0..k-1} R(2*l+1,rho(4*k)) - 1), identical for k >= 1, with the row polynomials R(n, x) from A127672 and rho(4*k) := 2*cos(Pi/(4*k)) is the length ratio (smallest diagonal)/side in a regular (4*k)-gon. From the product formula given in a Oct 21 2013 formula contribution to A056594, with n -> 2*k, using cos(Pi-alpha) = - cos(alpha) to obtain 2 for the square of the present product. - Wolfdieter Lang, Oct 22 2013
If x = sqrt(2), 1/log(x - 1) + 1/log(x + 1) = 0. - Kritsada Moomuang, Jul 10 2020
From Amiram Eldar, Jul 25 2020: (Start)
Equals Product_{k>=0} (1 + (-1)^k/(2*k + 1)).
Equals Sum_{k>=0} binomial(2*k,k)/8^k. (End)
Equals i^(1/2) + i^(-1/2). - Gary W. Adamson, Jul 11 2022
Equals (sqrt(2) + (sqrt(2) + (sqrt(2) + ...)^(1/3))^(1/3))^(1/3). - Michal Paulovic, Mar 22 2023
Equals 1 + Sum_{k>=1} (-1)^(k-1)/(2^(2*k)*(2*k - 1))*binomial(2*k,k) [Newton]. - Stefano Spezia, Oct 15 2024
From Antonio Graciá Llorente, Dec 19 2024: (Start)
Equals Sum_{k>=0} 2*k*binomial(2*k,k)/8^k.
Equals Product_{k>=2} k/sqrt(k^2 + 1).
Equals Product_{k>=0} (6*k + 3)/((6*k + 3) - (-1)^k).
Equals Product_{k>=1} (2*k + 1)/((2*k + 1) + (-1)^k).
Equals Product_{k>=0} ((4*k + 3)*(4*k + 1 + (-1)^k))/((4*k + 1)*(4*k + 3 + (-1)^k)). (End)
Equals hypergeom([1/2, 1/2], [1/2], 1/2). - Stefano Spezia, Jan 05 2025

A014176 Decimal expansion of the silver mean, 1+sqrt(2).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

From Hieronymus Fischer, Jan 02 2009: (Start)
Set c:=1+sqrt(2). Then the fractional part of c^n equals 1/c^n, if n odd. For even n, the fractional part of c^n is equal to 1-(1/c^n).
c:=1+sqrt(2) satisfies c-c^(-1)=floor(c)=2, hence c^n + (-c)^(-n) = round(c^n) for n>0, which follows from the general formula of A001622.
1/c = sqrt(2)-1.
See A001622 for a general formula concerning the fractional parts of powers of numbers x>1, which satisfy x-x^(-1)=floor(x).
Other examples of constants x satisfying the relation x-x^(-1)=floor(x) include A001622 (the golden ratio: where floor(x)=1) and A098316 (the "bronze" ratio: where floor(x)=3). (End)
In terms of continued fractions the constant c can be described by c=[2;2,2,2,...]. - Hieronymus Fischer, Oct 20 2010
Side length of smallest square containing five circles of diameter 1. - Charles R Greathouse IV, Apr 05 2011
Largest radius of four circles tangent to a circle of radius 1. - Charles R Greathouse IV, Jan 14 2013
An analog of Fermat theorem: for prime p, round(c^p) == 2 (mod p). - Vladimir Shevelev, Mar 02 2013
n*(1+sqrt(2)) is the perimeter of a 45-45-90 triangle with hypotenuse n. - Wesley Ivan Hurt, Apr 09 2016
This algebraic integer of degree 2, with minimal polynomial x^2 - 2*x - 1, is also the length ratio diagonal/side of the second largest diagonal in the regular octagon (not counting the side). The other two diagonal/side ratios are A179260 and A121601. - Wolfdieter Lang, Oct 28 2020
c^n = A001333(n) + A000129(n) * sqrt(2). - Gary W. Adamson, Apr 26 2023
c^n = c * A000129(n) + A000129(n-1), where c = 1 + sqrt(2). - Gary W. Adamson, Aug 30 2023

Examples

			2.414213562373095...
		

References

  • B. C. Berndt, Ramanujan's Notebooks Part II, Springer-Verlag, p. 140, Entry 25.

Crossrefs

Apart from initial digit the same as A002193.
See A098316 for [3;3,3,...]; A098317 for [4;4,4,...]; A098318 for [5;5,5,...]. - Hieronymus Fischer, Oct 20 2010

Programs

  • Maple
    Digits:=100: evalf(1+sqrt(2)); # Wesley Ivan Hurt, Apr 09 2016
  • Mathematica
    RealDigits[1 + Sqrt@ 2, 10, 111] (* Or *)
    RealDigits[Exp@ ArcSinh@ 1, 10, 111][[1]] (* Robert G. Wilson v, Aug 17 2011 *)
    Circs[n_] := With[{r = Sin[Pi/n]/(1 - Sin[Pi/n])}, Graphics[Append[
      Table[Circle[(r + 1) {Sin[2 Pi k/n], Cos[2 Pi k/n]}, r], {k, n}],   {Blue, Circle[{0, 0}, 1]}]]] Circs[4] (* Charles R Greathouse IV, Jan 14 2013 *)
  • PARI
    1+sqrt(2) \\ Charles R Greathouse IV, Jan 14 2013

Formula

Conjecture: 1+sqrt(2) = lim_{n->oo} A179807(n+1)/A179807(n).
Equals cot(Pi/8) = tan(Pi*3/8). - Bruno Berselli, Dec 13 2012, and M. F. Hasler, Jul 08 2016
Silver mean = 2 + Sum_{n>=0} (-1)^n/(P(n-1)*P(n)), where P(n) is the n-th Pell number (A000129). - Vladimir Shevelev, Feb 22 2013
Equals exp(arcsinh(1)) which is exp(A091648). - Stanislav Sykora, Nov 01 2013
Limit_{n->oo} exp(asinh(cos(Pi/n))) = sqrt(2) + 1. - Geoffrey Caveney, Apr 23 2014
exp(asinh(cos(Pi/2 - log(sqrt(2)+1)*i))) = exp(asinh(sin(log(sqrt(2)+1)*i))) = i. - Geoffrey Caveney, Apr 23 2014
Equals Product_{k>=1} A047621(k) / A047522(k) = (3/1) * (5/7) * (11/9) * (13/15) * (19/17) * (21/23) * ... . - Dimitris Valianatos, Mar 27 2019
From Wolfdieter Lang, Nov 10 2023:(Start)
Equals lim_{n->oo} A000129(n+1)/A000129(n) (see A000129, Pell).
Equals lim_{n->oo} S(n+1, 2*sqrt(2))/S(n, 2*sqrt(2)), with the Chebyshev S(n,x) polynomial (see A049310). (End)
From Peter Bala, Mar 24 2024: (Start)
An infinite family of continued fraction expansions for this constant can be obtained from Berndt, Entry 25, by setting n = 1/2 and x = 8*k + 6 for k >= 0.
For example, taking k = 0 and k = 1 yields
sqrt(2) + 1 = 15/(6 + (1*3)/(12 + (5*7)/(12 + (9*11)/(12 + (13*15)/(12 + ... + (4*n + 1)*(4*n + 3)/(12 + ... )))))) and
sqrt(2) + 1 = (715/21) * 1/(14 + (1*3)/(28 + (5*7)/(28 + (9*11)/(28 + (13*15)/(28 + ... + (4*n + 1)*(4*n + 3)/(28 + ... )))))). (End)

A175105 Triangle T(n,k) read by rows. T(n,1)=1; T(n,k) = Sum_{i=1..k-1} ( T(n-i,k-1) + T(n-i,k) ), k>1.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 3, 4, 1, 1, 4, 10, 6, 1, 1, 5, 21, 22, 8, 1, 1, 6, 40, 64, 38, 10, 1, 1, 7, 72, 163, 140, 58, 12, 1, 1, 8, 125, 382, 442, 256, 82, 14, 1, 1, 9, 212, 846, 1259, 954, 420, 110, 16, 1, 1, 10, 354, 1800, 3334, 3166, 1794, 640, 142, 18, 1, 1, 11, 585, 3719, 8366, 9657, 6754, 3074, 924, 178, 20, 1
Offset: 1

Views

Author

Mats Granvik, Feb 10 2010

Keywords

Comments

Are there closed forms for diagonals and columns?
With the definition of the array, I note that the sequence (phi(k)) (phi(k)= g.f. of the column number k) is given by the recurrence relation: phi(k+1)=phi(k)*(1-z^k)/(1-2*z+z^(k+1)). The consequence is: the sequence number k+1 column is the convolution of the k-one and a "-acci like" sequence whose g.f. is given by (1-z^k)/(1-2*z+z^(k+1)). E.g., the 2-column is the convolution of the 1-column and the sequence 1, 2, 3, 5, ... classical Fibonacci sequence without the first 1. The 3-column is the convolution of the 2-column and 1, 2, 4, 7, 13, ... tribonacci like-sequence (exactly: A000073 without beginning 0, 0, 1). - Richard Choulet, Feb 19 2010
Relation to metallic means:
T(n,1)=1, k>1: T(n,k) = Sum_{i=1..k-1} T(n-i,k-1) + 0*Sum_{i=1..k-1} T(n-i,k)
has antidiagonal sums for which the limiting ratio tends to the golden ratio, A001622.
T(n,1)=1, k>1: T(n,k) = Sum_{i=1..k-1} T(n-i,k-1) + 1*Sum_{i=1..k-1} T(n-i,k)
has antidiagonal sums for which the limiting ratio tends to the silver ratio, A014176.
T(n,1)=1, k>1: T(n,k) = Sum_{i=1..k-1} T(n-i,k-1) + 2*Sum_{i=1..k-1} T(n-i,k)
has antidiagonal sums for which the limiting ratio tends to the bronze ratio, A098316.
A similar point can be made about variations of the Pascal triangle.

Examples

			Table begins:
  n/k| 1    2    3    4    5    6    7    8    9   10   11
  ---+-----------------------------------------------------
   1 | 1
   2 | 1    1
   3 | 1    2    1
   4 | 1    3    4    1
   5 | 1    4   10    6    1
   6 | 1    5   21   22    8    1
   7 | 1    6   40   64   38   10    1
   8 | 1    7   72  163  140   58   12    1
   9 | 1    8  125  382  442  256   82   14    1
  10 | 1    9  212  846 1259  954  420  110   16    1
  11 | 1   10  354 1800 3334 3166 1794  640  142   18    1
Example: T(8,4) = 163 because it is the sum of the numbers:
  10    6
  21   22
  40   64
For k=1, we obtain phi(k)(z)=1/(1-z) which is clear; for k=2, we obtain phi(k)(z)=1/(1-z)^2. For k=3, we obtain phi(3)(z)=(1+z)/((1-2*z+z^3)*(1-z)); this is A001891 without the beginning zero. - _Richard Choulet_, Feb 19 2010
		

Crossrefs

Cf. A172119, A051731, A001891 (column k=3), A176084 (row sums).
(1-((-1)^T(n, k)))/2 = T(n, k) mod 2 = A051731.
Cf. A179807=antidiagonal sums. A179748 has simpler recurrence.

Programs

  • Excel
    =if(column()=1;1;if(row()>=column();sum(indirect(address(row()-column()+1;column()-1;4)&":"&address(row()-column()+column()-1;column()-1;4);4))+sum(indirect(address(row()-column()+1;column();4)&":"&address(row()-column()+column()-1;column();4);4));0)) ' Mats Granvik, Mar 28 2010
  • Maple
    A175105 := proc(n,k) if k =1 then 1; elif k > n or k< 1 then 0 ; else    add(procname(n-i,k-1)+procname(n-i,k),i=1..k-1) ; end if; end proc; # R. J. Mathar, Feb 16 2011
  • Mathematica
    T[_, 1] = 1;
    T[n_, k_] /; 1, ] = 0;
    Table[T[n, k], {n, 1, 12}, {k, 1, n}] // Flatten (* Jean-François Alcover, Dec 19 2019 *)

Formula

The g.f of the number k column is phi(k)(z) = (1/(1-z))*Product_{i=1..k-1}(1-z^i)/(1-2*z+z^(i+1)). - Richard Choulet, Feb 19 2010

Extensions

Corrected and edited by Mats Granvik, Jul 28 2010, Dec 09 2010
Choulet formulas indices shifted (to adapt to the new column index) by R. J. Mathar, Dec 13 2010
Showing 1-3 of 3 results.