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

A049541 Decimal expansion of 1/Pi.

Original entry on oeis.org

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

Views

Author

N. J. A. Sloane, Dec 11 1999

Keywords

Comments

The ratio of the volume of a regular octahedron to the volume of the circumscribed sphere (which has circumradius a*sqrt(2)/2 = a*A010503, where a is the octahedron's edge length; see MathWorld link). For similar ratios for other Platonic solids, see A165922, A165952, A165953 and A165954. - Rick L. Shepherd, Oct 01 2009
Corresponds to a gauge point marked "M" on slide rule calculating devices in the 20th century. The Pickworth reference notes its use in calculating the area of the curved surface of a cylinder. - Peter Munn, Aug 14 2020

Examples

			0.3183098861837906715377675267450287240689192914809128974953...
		

References

  • J.-P. Delahaye, Pi - die Story (German translation), Birkhäuser, 1999 Baasel, p. 245. French original: Le fascinant nombre Pi, Pour la Science, Paris, 1997.
  • C. N. Pickworth, The Slide Rule, 24th Ed., Pitman, London, 1945, p. 53, Gauge Points.
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers. Penguin Books, NY, 1986, Revised edition 1987, p. 27.

Crossrefs

Programs

Formula

Equals (1/(12-16*A002162))*Sum_{n>=0} A002894(n)*H(n)/(A001025(n) * A016754(n-1)), where H(n) denotes the n-th harmonic number. - John M. Campbell, Aug 28 2016
1/Pi = Sum_{m>=0} binomial(2*m, m)^3 * (42*m+5)/(2^(12*m+4)), Ramanujan, from the J.-P. Delahaye reference. - Wolfdieter Lang, Sep 18 2018; corrected by Bernard Schott, Mar 26 2020
1/Pi = 12*Sum_{n >= 0} (-1)^n*((6*n)!/(n!^3*(3*n)!))*(13591409 + 545140134*n)/640320^(3*n + 3/2) [Chudnovsky]. - Sanjar Abrarov, Mar 31 2020
1/Pi = (sqrt(8)/9801) * Sum_{n >= 0} ((4*n)!/((n!)^4)) * (26390*n + 1103)/(396^(4*n)) [Ramanujan, 1914]. - Bernard Schott, Mar 26 2020
Equal Sum_{k>=2} tan(Pi/2^k)/2^k. - Amiram Eldar, Aug 05 2020
Floor((3/8)*Sum_{n>=1} sigma[3](n)*n/exp(Pi*n/(10^((1/5)*k+(1/5))))) mod 10, will give the k-th digit of 1/Pi. - Simon Plouffe, Dec 19 2023

A020760 Decimal expansion of 1/sqrt(3).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

If the sides of a triangle form an arithmetic progression in the ratio 1:1+d:1+2d then when d=1/sqrt(3) it uniquely maximizes the area of the triangle. This triangle has approximate internal angles 25.588 degs, 42.941 degs, 111.471 degs. - Frank M Jackson, Jun 15 2011
When a cylinder is completely enclosed by a sphere, it occupies a fraction f of the sphere volume. The value of f has a trivial lower bound of 0, and an upper bound which is this constant. It is achieved iff the cylinder diameter is sqrt(2) times its height, and the sphere is circumscribed to it. A similar constant can be associated with any n-dimensional geometric shape. For 3D cuboids it is A165952. - Stanislav Sykora, Mar 07 2016
The ratio between the thickness and diameter of a dynamically fair coin having an equal probability, 1/3, of landing on each of its two faces and on its side after being tossed in the air. The calculation is based on the dynamic of rigid body (Yong and Mahadevan, 2011). See A020765 for a simplified geometrical solution. - Amiram Eldar, Sep 01 2020
The coefficient of variation (relative standard deviation) of natural numbers: Limit_{n->oo} sqrt((n-1)/(3*n+3)) = 1/sqrt(3). - Michal Paulovic, Mar 21 2023

Examples

			0.577350269189625764509148780501957455647601751270126876018602326....
		

References

  • Steven R. Finch, Mathematical Constants, Encyclopedia of Mathematics and its Applications, vol. 94, Cambridge University Press, 2003, Sections 8.4.3 and 8.17, pp. 495, 531.

Crossrefs

Cf. A002194 (sqrt(3)), A010701 (1/3).

Programs

Formula

Equals 1/A002194. - Michel Marcus, Oct 12 2014
Equals cosine of the magic angle: cos(A195696). - Stanislav Sykora, Mar 07 2016
Equals square root of A010701. - Michel Marcus, Mar 07 2016
Equals 1 + Sum_{k>=0} -(4*k+1)^(-1/2) + (4*k+3)^(-1/2) + (4*k+5)^(-1/2) - (4*k+7)^(-1/2). - Gerry Martens, Nov 22 2022
Equals (1/2)*(2 - zeta(1/2,1/4) + zeta(1/2,3/4) + zeta(1/2,5/4) - zeta(1/2,7/4)). - Gerry Martens, Nov 22 2022
Has periodic continued fraction expansion [0, 1; 1, 2] (A040001). - Michal Paulovic, Mar 21 2023
Equals Product_{k>=1} (1 + (-1)^k/A047235(k)). - Amiram Eldar, Nov 22 2024
Equals tan(Pi/6) = (1/2)/A010527. - R. J. Mathar, Aug 31 2025

A000086 Number of solutions to x^2 - x + 1 == 0 (mod n).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Number of elliptic points of order 3 for Gamma_0(n).
Equivalently, number of fixed points of Gamma_0(n) of type rho.
Values are 0 or a power of 2.
Shadow transform of central polygonal numbers A002061. - Michel Marcus, Jun 06 2013
Empirical: a(n) == A001615(n) (mod 3) for all natural numbers n. - John M. Campbell, Apr 01 2018
From Jianing Song, Jul 03 2018: (Start)
The comment above is true. Since both a(n) and A001615(n) are multiplicative we just have to verify that for prime powers. Note that A001615(p^e) = (p+1)*p^(e-1). For p == 1 (mod 3), p+1 == 2 (mod 3) so (p+1)*p^(e-1) == 2 (mod 3); for p == 2 (mod 3), p+1 is a multiple of 3 so (p+1)*p^(e-1) == 0 (mod 3). For p = 3, if e = 1 then p+1 == 1 (mod 3); if e > 1 then (p+1)*p^(e-1) == 0 (mod 3).
Equivalently, number of solutions to x^2 + x + 1 == 0 (mod n). (End)

Examples

			G.f. = x + x^3 + 2*x^7 + 2*x^13 + 2*x^19 + 2*x^21 + 2*x^31 + 2*x^37 + 2*x^39 + ...
		

References

  • Bruno Schoeneberg, Elliptic Modular Functions, Springer-Verlag, NY, 1974, p. 101.
  • Goro Shimura, Introduction to the Arithmetic Theory of Automorphic Functions, Princeton, 1971, see p. 25, Eq. (3).

Crossrefs

Cf. A341422 (without zeros).

Programs

  • Haskell
    a000086 n = if n `mod` 9 == 0 then 0
      else product $ map ((* 2) . a079978 . (+ 2)) $ a027748_row $ a038502 n
    -- Reinhard Zumkeller, Jun 23 2013
  • Maple
    with(numtheory); A000086 := proc (n) local d, s; if modp(n,9) = 0 then RETURN(0) fi; s := 1; for d in divisors(n) do if isprime(d) then s := s*(1+eval(legendre(-3,d))) fi od; s end: # Gene Ward Smith, May 22 2006
  • Mathematica
    Array[ Function[ n, If[ EvenQ[ n ] || Mod[ n, 9 ]==0, 0, Count[ Array[ Mod[ #^2-#+1, n ]&, n, 0 ], 0 ] ] ], 84 ]
    a[ n_] := If[ n < 1, 0, Length[ Select[ (#^2 - # + 1)/n & /@ Range[n], IntegerQ]]]; (* Michael Somos, Aug 14 2015 *)
    a[n_] := a[n] = Product[{p, e} = pe; Which[p==1 || p==3 && e==1, 1, p==3 && e>1, 0, Mod[p, 3]==1, 2, Mod[p, 3]==2, 0, True, a[p^e]], {pe, FactorInteger[n]}]; Array[a, 105] (* Jean-François Alcover, Oct 18 2018 *)
  • PARI
    {a(n) = if( n<1, 0, sum( x=0, n-1, (x^2 - x + 1)%n==0))}; \\ Nov 15 2002
    
  • PARI
    {a(n) = if( n<1, 0, direuler( p=2, n, if( p==3, 1 + X, if( p%3==2, 1, (1 + X) / (1 - X)))) [n])}; \\ Nov 15 2002
    

Formula

Multiplicative with a(p^e) = 1 if p = 3 and e = 1; 0 if p = 3 and e > 1; 2 if p == 1 (mod 3); 0 if p == 2 (mod 3). - David W. Wilson, Aug 01 2001
a(A226946(n)) = 0; a(A034017(n)) > 0. - Reinhard Zumkeller, Jun 23 2013
a(2*n) = a(3*n + 2) = a(9*n) = a(9*n + 6) = 0. - Michael Somos, Aug 14 2015
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 2*sqrt(3)/(3*Pi) = 0.367552... (A165952). - Amiram Eldar, Oct 11 2022

A063723 Number of vertices in the Platonic solids (in the order tetrahedron, cube, octahedron, dodecahedron, icosahedron).

Original entry on oeis.org

4, 8, 6, 20, 12
Offset: 1

Views

Author

Henry Bottomley, Aug 14 2001

Keywords

Comments

The preferred order for these five numbers is 4, 6, 8, 12, 20 (tetrahedron, octahedron, cube, icosahedron, dodecahedron), as in A053016. - N. J. A. Sloane, Nov 05 2020
Also number of faces of Platonic solids ordered by increasing ratios of volumes to their respective circumscribed spheres. See cross-references for actual ratios. - Rick L. Shepherd, Oct 04 2009
Also the expected lengths of nontrivial random walks along the edges of a Platonic solid from one vertex back to itself. - Jens Voß, Jan 02 2014

Examples

			a(2) = 8 since a cube has eight vertices.
		

Crossrefs

Cf. A165922 (tetrahedron), A049541 (octahedron), A165952 (cube), A165954 (icosahedron), A165953 (dodecahedron). - Rick L. Shepherd, Oct 04 2009
Cf. A234974. - Jens Voß, Jan 02 2014

Formula

a(n) = A063722(n) - A053016(n) + 2.

A165953 Decimal expansion of (5*sqrt(3) + sqrt(15))/(6*Pi).

Original entry on oeis.org

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

Views

Author

Rick L. Shepherd, Oct 02 2009

Keywords

Comments

The ratio of the volume of a regular dodecahedron to the volume of the circumscribed sphere (which has circumradius a*(sqrt(3) + sqrt(15))/4 = a*(A002194 + A010472)/4, where a is the dodecahedron's edge length; see MathWorld link). For similar ratios for other Platonic solids, see A165922, A049541, A165952, and A165954. A063723 shows the order of these by size.

Examples

			0.6649088942053266431144284467086337161648765805556919381057592605722964718...
		

Crossrefs

Programs

  • Mathematica
    RealDigits[(5*Sqrt[3]+Sqrt[15])/(6*Pi),10,120][[1]] (* Harvey P. Dale, Feb 16 2018 *)
  • PARI
    (5*sqrt(3)+sqrt(15))/(6*Pi)

Formula

Equals (5*A002194 + A010472)/(6*A000796).
Equals (5*A002194 + A010472)*A049541/6.
Equals (10*A010527 + A010472)*A049541/6.
Equals (5 + sqrt(5))/(2*Pi*sqrt(3)).
Equals (5 + A002163)*A049541*A020760/2.

A165954 Decimal expansion of sqrt(10 + 2*sqrt(5))/(2*Pi).

Original entry on oeis.org

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

Views

Author

Rick L. Shepherd, Oct 04 2009

Keywords

Comments

The ratio of the volume of a regular icosahedron to the volume of the circumscribed sphere (with circumradius a*sqrt(10 + 2*sqrt(5))/4 = a*A019881, where a is the icosahedron's edge length; see MathWorld link). For similar ratios for other Platonic solids, see A165922, A049541, A165952, and A165953. A063723 shows the order of these by size.

Examples

			0.6054613829125255833862652051280444903008454088014288933200935000838295683...
		

Crossrefs

Programs

  • Mathematica
    RealDigits[Sqrt[10+2Sqrt[5]]/(2Pi),10,120][[1]] (* Harvey P. Dale, Aug 27 2013 *)
  • PARI
    sqrt(10+2*sqrt(5))/(2*Pi)

Formula

sqrt(10 + 2*sqrt(5))/(2*Pi) = sqrt(10 + 2*A002163)/(2*A000796) = 2*sin(2*Pi/5)/Pi = 2*sin(A019694)/A000796 = 2*sin(72 deg)/Pi = 2*A019881/A000796 = 2*A019881*A049541 = (2/Pi)*sin(72 deg) = A060294*A019881.

A270230 Decimal expansion of 3/(4*Pi).

Original entry on oeis.org

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

Views

Author

Stanislav Sykora, Mar 13 2016

Keywords

Comments

Consider generic prisms with triangular bases (tp), enclosed by a sphere, and let f(tp) be the fraction of the sphere volume occupied by any of them (i.e., the ratio of the prism volume to the sphere volume). Then this constant is the supremum of f(tp). It is attained by prisms which have as their base equilateral triangles with edge lengths r*sqrt(2), and rectangular side faces that are r*sqrt(2) wide and r*2/sqrt(3) high, where r is the radius of the enclosing, circumscribed sphere.
An intriguing fact is that the volume of such a best-fitting prism is exactly r^3. Hence, 1/a is the volume of a sphere with radius 1.
Examples of similar constants obtained for other shapes enclosed by spheres are: A020760 for cylinders and A165952 for cuboids.

Examples

			0.238732414637843003653325645058771543051689468610684673121501016...
		

Crossrefs

Cf. A002193, A019699 (one tenth of 1/a), A020760, A020832 (one tenth of 2/sqrt(3)), A165952.

Programs

  • Mathematica
    First@ RealDigits[N[3/4/Pi, 120]] (* Michael De Vlieger, Mar 15 2016 *)
  • PARI
    3/4/Pi
Showing 1-7 of 7 results.