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.

A056581 Nearest integer to 1/(A056580(n) - exp(sqrt(n)*Pi)).

Original entry on oeis.org

-7, -51, 4, -2, -5, 110, 15, -3, 3, 5, -7, -3, 19, 4, 5, -3, 430, 141, 4, 4, -2, 574, 3, 7, 1518, -3, 62, 84, -2, -10, 11, -7, -13, -4, 4, -3, 45551, -5, 3, 3, 2, -33, 4494, -8, -5, -6, 3, -2, 7, 2, 9, -3, -4, -4, 3, -17, -2, 5624716, 147, -5, 4, 3, 3, 2, 6, -2, 747638
Offset: 1

Views

Author

Henry Bottomley, Jun 30 2000

Keywords

Comments

A measure of how close e^(Pi*sqrt(n)) is to an integer (higher absolute value of a(n) means closer, negative value means the closest integer is smaller than it).
The sign convention is chosen so that most terms and in particular record values such as those occurring for the Heegner numbers A003173, are positive, so that A069014 lists record indices of this sequence (except for A069014(2)=2 instead of 3 for signed values). The sequence is not defined for n=0,-1 where e^(sqrt(n)*Pi) is an integer. - M. F. Hasler, Apr 15 2008
Negative resp. positive values of a(n) correspond to 2nd resp. 3rd term of the continued fraction expansion of exp(sqrt(n)*Pi), up to a difference of -1 or -2 depending on the direction of rounding. - M. F. Hasler, Apr 15 2008

Examples

			a(6)=110, since e^(Pi*sqrt(6)) = 2197.9908695... and 1/(2198-2197.9908695...) = 109.52... which rounds to 110.
e^(Pi*sqrt(163)) = 262537412640768743.9999999999992500725971981... (the Ramanujan number) and so a(163)=1333462407513.
		

References

  • For links, references and more information see A019296 and other cross-referenced sequences.

Crossrefs

Programs

  • PARI
    default(realprecision,100); dZ(x)=round(x)-x
    A056581(n)=round(1/dZ(exp(sqrt(n)*Pi)))

Formula

a(n) = 1/(A056580(n) - e^(sqrt(n)*Pi)).
A019296 ={-1, 0} U { n | abs(A056581(n)) > 100} U { some n for which abs(A056581(n)) = 100 }. - M. F. Hasler, Apr 15 2008

Extensions

Definition, formulas and values corrected and extended by M. F. Hasler, Apr 15 2008

A138852 a(n) = round(1/(x-round(x))), where x = (log(744 + (12(n^2-1))^3)/Pi)^2, round(x) = nearest integer to x.

Original entry on oeis.org

2, -4, 1435303, -2, 4, 4, -6, 17, 952364958135, -3, 4, -2, -5, -8, -7, -4, -2, 4, -10, 2, 21119108989115042, 2, -8, 4, -2, -7, 10, 3, 2, -3, -4, -6, -10, -16, -19, -16, -11, -7, -5, -3, -2, 2, 3, 6, -51, -5, -2, 3, 7, -10, -3, 3, 9, -6, -2, 5, -9, -2, 4, -8, -2, 6, -5, 2, 44, -3, 4, -5, 3, -35, -2, 10, -3, 5, -4
Offset: 1

Views

Author

M. F. Hasler, Apr 17 2008

Keywords

Comments

Related to almost-integer values of e^(pi sqrt n), obtained for larger Heegener numbers (A003173): T. Piezas draws attention on the fact that the well-known integers very close to exp(pi sqrt(n)) are of the form (12(k^2-1))^3+744. Here this is expressed as the (rounded value) of the reciprocal of the (signed) distance from the integers of the n-value corresponding to a given integer k-value. As expected, records are obtained for k = 3, 9, 21, 231.

Examples

			We have a(3) = 1435303 since (12(3^2-1))^3+744 = e^(pi sqrt(x)) with x = 19.0000006967... = 19 + 1/1435302.833...
In the same way, a(231)=43072298941682041177938098750 since (12(231^2-1))^3+744 = e^(pi sqrt(x)) with x = 163.0000000000000000000000000000232 = 163 + 1/43072298941682041177938098749.8977...
		

Crossrefs

Cf. A139388, A138851, A003173, A014708, A056581 and references therein.

Programs

  • Mathematica
    a[n_] := Module[{x = (Log[744 + (12*(n^2-1))^3] / Pi)^2}, Round[1/(x - Round[x])]]; Array[a, 100] (* Amiram Eldar, Jan 17 2025 *)
  • PARI
    default(realprecision,200); A138852(n)={ n=(log(744+(12*(n^2-1))^3)/Pi)^2; round(1/(x-round(x))) }

A139388 Nearest integer to (log(744+(12(n^2-1))^3)/Pi)^2.

Original entry on oeis.org

4, 12, 19, 25, 29, 33, 37, 40, 43, 46, 48, 51, 53, 55, 57, 59, 61, 62, 64, 65, 67, 68, 70, 71, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 90, 91, 92, 93, 94, 95, 95, 96, 97, 98, 98, 99, 100, 101, 101, 102, 103, 103, 104, 105, 105, 106, 106, 107, 108
Offset: 1

Views

Author

M. F. Hasler, Apr 17 2008

Keywords

Comments

The well-known integers very close to e^(pi sqrt n) for n=A003173(m) are of the form (12(k^2-1))^3+744. This sequence gives the rounded n-value corresponding to a given k.

References

  • See A138852 for links, references and more information.

Crossrefs

Cf. A138851-A138852, A003173, A014708, A056581 and references therein.

Programs

  • Mathematica
    Table[Round[(Log[744+(12(n^2-1))^3]/Pi)^2],{n,70}] (* Harvey P. Dale, Mar 26 2025 *)
  • PARI
    A139388(n)=round((log(744+(12*(n^2-1))^3)/Pi)^2)
Showing 1-3 of 3 results.