TOPICS
Search

Almost Integer


An almost integer is a number that is very close to an integer.

Near-solutions to Fermat's last theorem provide a number of high-profile almost integers. In the season 7, episode 6 ("Treehouse of Horror VI") segment entitled Homer^3 of the animated televsion program The Simpsons, the equation 1782^(12)+1841^(12)=1922^(12) appears at one point in the background. Expansion reveals that only the first 9 decimal digits match (Rogers 2005). Simpsons season 10, episode 2 ("The Wizard of Evergreen Terrace") mentions 3987^(12)+4365^(12)=4472^(12), which matches not only in the first 10 decimal places but also the easy-to-check last place (Greenwald). The corresponding almost integers are

(1782^(12)+1841^(12))/(1922^(12))=0.99999999972...
(1)
(3987^(12)+4365^(12))/(4472^(12))=1.0000000000189....
(2)

Some surprising almost integers are given by

 sin(11)=-0.999990206...,
(3)

which equals -1 to within 5 digits and

 sin(2017RadicalBox[2, 5])=-0.9999999999999999785...,
(4)

which equals -1 to within 16 digits (M. Trott, pers. comm., Dec. 7, 2004). The first of these comes from the half-angle formula identity

 sin^211=1/2(1-cos22),
(5)

where 22 is the numerator of the convergent 22/7 to pi, so cos22 approx cos(7pi)=cospi= approx -1. It therefore follows that any pi approximation x gives a near-identity of the form cosx approx -1.

Another surprising example involving both e and pi is

 e^pi-pi=19.999099979...
(6)

(cf. Maze and Minder 2005), which can also be written as

(pi+20)^i=-0.9999999992-0.0000388927i
(7)
cos(ln(pi+20)) approx -0.9999999992.
(8)

Here, e^pi is Gelfond's constant. This near-identity was apparently noticed almost simultaneously around 1988 by N. J. A. Sloane, J. H. Conway, and S. Plouffe. Its origins can be connected to the sum related to Jacobi theta functions

 sum_(k=1)^infty(8pik^2-2)e^(-pik^2)=1.
(9)

The first term dominates since the other terms contribute only

 sum_(k=2)^infty(8pik^2-2)e^(-pik^2) approx 0.0003436,
(10)

giving

 e^(-pi)(8pi-2)=0.999656... approx 1.
(11)

Rewriting as

 e^pi approx 8pi-2=pi+7pi-2
(12)

and using the approximation pi approx 22/7 then gives

 e^pi approx pi+22-2=pi+20
(13)

(A. Doman, Sep. 18, 2023; communicated by D. Bamberger, Nov. 26, 2023). Amusingly, the choice of pi approx 22/7 (which is not mathematically significant compared to other choices except that it makes the final form very simple) in the last step makes the formula an order of magnitude more precise than it would otherwise be.

The near-identify can be made even closer by applying cosine a few more times, e.g.,

 cos(picos(picos(ln(pi+20)))) approx -1+3.9321609261×10^(-35).
(14)

Another nested cosine almost integer is given by

 2cos(cos(cos(cos(cos(cos(cos5))))))^2 
 =0.999995254797000...
(15)

(P. Rolli, pers. comm., Feb. 19, 2004).

An example attributed to Ramanujan is

 22pi^4=2143+2.748...×10^(-6).
(16)

Some near-identities involving integers and the logarithm are

510log_(10)7=431.00000040...
(17)
88ln89=395.00000053...
(18)
272log_pi97=1087.000000204...,
(19)

which are good to 6, 6, and 6 decimal digits, respectively (K. Hammond, pers. comm., Jan. 4 and Mar. 23-24, 2006).

An interesting near-identity is given by

 1/4[cos(1/(10))+cosh(1/(10))+2cos(1/(20)sqrt(2))cosh(1/(20)sqrt(2))]=1+2.480...×10^(-13)
(20)

(W. Dubuque, pers. comm.).

Near-identities involving e and pi are given by

 e^6-pi^4-pi^5=0.000017673...
(21)

(D. Wilson, pers. comm.),

 (pi^9)/(e^8)=9.9998387...
(22)

(D. Ehlke, pers. comm., Apr. 7, 2005),

 10tanh((28)/(15)pi)-(pi^9)/(e^8) approx 6.005×10^(-9)
(23)

(Povolotsky, pers. comm., May 11, 2008), and

 (e^pi-ln3)/(ln2)-4/5=31.0000000033...
(24)

(good to 8 digits; M. Stay, pers. comm., Mar. 17, 2009), or equivalently

 (10(e^pi-ln3))/(ln2)=318.000000033...,
(25)

Other remarkable near-identities are given by

 (5(1+sqrt(5))[Gamma(3/4)]^2)/(e^(5pi/6)sqrt(pi))=1+4.5422...×10^(-14),
(26)

where Gamma(z) is the gamma function (S. Plouffe, pers. comm.),

 ln2+log_(10)2=0.994177...
(27)

(D. Davis, pers. comm.),

 (163)/(ln163)=31.9999987384...
(28)

(posted to sci.math; origin unknown),

 eC^(5/7-gamma)pi^(-(2/7+gamma)) approx 1.00014678
(29)
 (C^(gamma-19/7)pi^(2/7+gamma))/(2phi) approx 1.00105
(30)
 egammaphi(Cpi)^(-(2/7+gamma)) approx 1.01979,
(31)

where C is Catalan's constant, gamma is the Euler-Mascheroni constant, and phi is the golden ratio (D. Barron, pers. comm.), and

 163(pi-e)=68.999664...
(32)
 (53453)/(ln53453)=4910.00000122...
(33)
[(2-1)^2+((5^2-1)^2)/(6^2+1)]e-[(2+1)^2+((5^2+1)^2)/(6^2-1)]^(-1)=(613)/(37)e-(35)/(991)
(34)
=44.99999999993962...
(35)

(E. Stoschek, pers. comm.). Stoschek also gives an interesting near-identity involving the fine structure constant alpha and Feigenbaum constant delta,

 (28-delta^(-1))(alpha^(-1)-137) approx 0.999998.
(36)

E. Pegg Jr. (pers. comm., Mar. 4, 2002) discovered the interesting near-identities

 ((91)/(10))^(1/4)-(33)/(19)=3.661378...×10^(-8)
(37)

and

 ((23)/9)^5=(6436343)/(59049) approx 109.00003387.
(38)

The near-identity

 3sqrt(2)(sqrt(5)-2)=1.0015516...
(39)

arises by noting that the augmentation ratio (r+h)/h=3(sqrt(5)-2) in the augmentation of the dodecahedron to form the great dodecahedron is approximately equal to 1/sqrt(2). Another near identity is given by

 zeta(3) approx gamma^(-1/3)+pi^(-1/4)(1+2gamma-2/(130+pi^2))^(-3),
(40)

where zeta(3) is Apéry's constant and gamma is the Euler-Mascheroni constant, which is accurate to four digits (P. Galliani, pers. comm., April 19, 2002).

J. DePompeo (pers. comm., Mar. 29, 2004) found

 (5phie)/(7pi)=1.0000097...,
(41)

which is equal to 1 to five digits.

M. Hudson (pers. comm., Oct. 18, 2004) noted the almost integer

 lnK-lnlnK=1.0000744...,
(42)

where K is Khinchin's constant, as well as

 (sqrt(45))^gamma=3.000060964...,
(43)

(pers. comm., Feb. 4, 2005), where gamma is the Euler-Mascheroni constant.

M. Joseph found

 erfi(erfi(1/3sqrt(3)))=1.0000208...,
(44)

which is equal to 1 to four digits (pers. comm., May 18, 2006). M. Kobayashi (pers. comm., Sept. 17, 2004) found

 10(gamma^(-1/2)-1)^2=0.9999980...,
(45)

which is equal to 1 to five digits. The related expression

 (10)/(81)(11-2sqrt(10))-gamma=-2.72×10^(-7),
(46)

which is equal to 0 to six digits (E. Pegg Jr., pers. comm., Sept. 28, 2004). S. M. Edde (pers. comm., Sep. 7, 2007) noted that

 exp[-psi_0(1/4(2+sqrt(3)))]=1.99999969...,
(47)

where psi_0(x) is the digamma function.

E. W. Weisstein (Mar. 17, 2003) found the almost integers

2.78768×10^(-6) approx 7/(64)ln2-(131)/(1728)
(48)
2.84186×10^(-6) approx (80497)/(40320)-(43)/(144)pi^2+(3293)/(1260)ln2-(43)/(24)(ln2)^2
(49)
9.80710×10^(-6) approx (2411287)/(30240)-(100)/9pi^2+(1877)/(21)ln2-(200)/3(ln2)^2
(50)

as individual integrals in the decomposition of the integration region to compute the average area of a triangle in triangle triangle picking.

ln2 and 3^(1/3) give the almost integer

 1/(3^(1/3)ln2)=1.00030887...
(51)

(E. W. Weisstein, Feb. 5, 2005).

Prudnikov et al. (1986, p. 757) inadvertently give an almost integer result by incorrectly identifying the infinite product

 product_(k=1)^infty(1-e^(-2pik/sqrt(3)))=(e^(-2pi/sqrt(3)))_infty,
(52)

where (q)_infty is a q-Pochhammer symbol, as being equal 3^(1/4)e^(-pi/(6sqrt(3))), which differs from the correct result by

 3^(1/4)e^(-pi/(6sqrt(3)))-(e^(-2pi/sqrt(3)))_infty approx 1.82668×10^(-5).
(53)

A much more obscure almost identity related to the eight curve is the location of the jump in

 Pi(1/2i(i+sqrt(7));isinh^(-1)(sqrt(-(2i)/(i+sqrt(7)))tant),k),
(54)

where

 k=sqrt((i+sqrt(7))/(i-sqrt(7)))
(55)

and Pi(n;phi,k) is an elliptic integral of the third kind, which is 1.3333292798..., or within 4.1×10^(-6) of 4/3 (E. W. Weisstein, Apr. 2006). Another slightly obscure one is the value of x needed to give a 99.5% confidence interval for a Student's t-distribution with sample size 30, which is 2.7499956..., or within 4.4×10^(-6) of 11/4 (E. W. Weisstein, May 2, 2006).

Let l^_ be the average length of a line in triangle line picking for an isosceles right triangle, then

 l^_=1/(30)[2+4sqrt(2)+(4+sqrt(2))sinh^(-1)1] approx 0.4142933026,
(56)

which is within 8×10^(-5) of sqrt(2)-1=0.4142135624....

D. Terr (pers. comm., July 29, 2004) found the almost integer

 phi/(2^(ln2))=1.0007590...,
(57)

where phi is the golden ratio and ln2 is the natural logarithm of 2.

A set of almost integers due to D. Hickerson are those of the form

 h_n=(n!)/(2(ln2)^(n+1))
(58)

for 1<=n<=17, as summarized in the following table.

nh_n
00.72135
11.04068
23.00278
312.99629
474.99874
5541.00152
64683.00125
747292.99873
8545834.99791
97087261.00162
10102247563.00527
111622632572.99755
1228091567594.98157
13526858348381.00125
1410641342970443.08453
15230283190977853.03744
165315654681981354.51308
17130370767029135900.45799

These numbers are close to integers due to the fact that the quotient is the dominant term in an infinite series for the number of possible outcomes of a race between n people (where ties are allowed). Calling this number f(n), it follows that

 f(n)=sum_(k=1)^n(n; k)f(n-k)
(59)

with f(0)=1, where (n; k) is a binomial coefficient. From this, we obtain the exponential generating function for f

 sum_(n=0)^infty(f(n))/(n!)z^n=1/(2-e^z),
(60)

and then by contour integration it can be shown that

 f(n)=1/2(-1)^(n+1)n!sum_(k=-infty)^infty1/((ln2+2piik)^(n+1))
(61)

for n>=1, where i is the square root of -1 and the sum is over all integers k (here, the imaginary parts of the terms for k and -k cancel each other, so this sum is real). The k=0 term dominates, so f(n) is asymptotic to n!/(2(ln2)^(n+1)). The sum can be done explicitly as

 f(n)=((-1)^(n+1)in!)/(pi^(n+1)2^(n+2))[i^nzeta(n+1,1+(iln2)/(2pi))-(-i)^nzeta(n+1,-(iln2)/(2pi))],
(62)

where zeta(s,a) is the Hurwitz zeta function. In fact, the other terms are quite small for n from 1 to 15, so f(n) is the nearest integer to n!/(2(ln2)^(n+1)) for these values, given by the sequence 1, 3, 13 75, 541, 4683, ... (OEIS A034172).

A large class of irrational "almost integers" can be found using the theory of modular functions, and a few rather spectacular examples are given by Ramanujan (1913-14). Such approximations were also studied by Hermite (1859), Kronecker (1863), and Smith (1965). They can be generated using some amazing (and very deep) properties of the j-function. Some of the numbers which are closest approximations to integers are e^(pisqrt(163)) (sometimes known as the Ramanujan constant and which corresponds to the field Q(sqrt(-163)) which has class number 1 and is the imaginary quadratic field of maximal discriminant), e^(pisqrt(22)), e^(pisqrt(37)), and e^(pisqrt(58)), the last three of which have class number 2 and are due to Ramanujan (Berndt 1994, Waldschmidt 1988ab).

The properties of the j-function also give rise to the spectacular identity

 [(ln(640320^3+744))/pi]^2=163+2.32167...×10^(-29)
(63)

(Le Lionnais 1983, p. 152; Trott 2004, p. 8).

The list below gives numbers of the form x=e^(pisqrt(n)) for n<=1000 for which |nint(x)-x|<=10^(-3).

n|nint(x)-x|
25-0.00066
37-0.000022
43-0.00022
58-1.8×10^(-7)
67-1.3×10^(-6)
74-0.00083
1480.00097
163-7.5×10^(-13)
232-7.8×10^(-6)
2680.00029
522-0.00015
6521.6×10^(-10)
719-0.000013

Gosper (pers. comm.) noted that the expression

 1-262537412640768744e^(-pisqrt(163))-196884e^(-2pisqrt(163))+103378831900730205293632e^(-3pisqrt(163)).
(64)

differs from an integer by a mere 1.6×10^(-59).

AlmostIntegerTriangleDissection

E. Pegg Jr. noted that the triangle dissection illustrated above has length

d=1/2sqrt(1/(30)(61421-23sqrt(5831385)))
(65)
=7+8.574×10^(-8),
(66)

which is almost an integer.

Borwein and Borwein (1992) and Borwein et al. (2004, pp. 11-15) give examples of series identities that are nearly true. For example,

 sum_(n=1)^infty(|_ntanhpi_|)/(10^n)=1/(81)-1.11...×10^(-269)
(67)

which is true since tanhpi=0.9962... and |_ntanhpi_|=n-1 for positive integer n<268. In fact, the first few doubled values of n at which |_ntanhpi_|=|_(n+1)tanhpi_| are 268, 536, 804, 1072, 1341, 1609, ...(OEIS A096613).

An example of a (very) near-integer is

sum_(k=-infty)^(infty)1/(10^((k/100)^2))=theta_3(0,10^(-1/10000))
(68)
 approx 100sqrt(pi/(ln10))+1.3809×10^(-18613)
(69)

(Borwein and Borwein 1992; Maze and Minder 2005).

Maze and Minder (2005) found the class of near-identities obtained from

 u_k=ln2sum_(n=-infty)^infty1/((2^(k/2)+2^(-k/2))^n)
(70)

as

u_1=3.14159265359518238328842...
(71)
=pi+5.3...×10^(-12)
(72)
u_2=1.00000000004885109041382...
(73)
=1+4.8...×10^(-11)
(74)
u_3=pi/(2^3)+2.2...×10^(-10)
(75)
u_4=1/6+6.7...×10^(-10)
(76)
u_5=(3pi)/(2^7)+1.5...×10^(-9)
(77)
u_6=1/(30)+2.9...×10^(-9)
(78)

(OEIS A114609 and A114610). Here, the excesses can be computed as exact sums connected by a recurrence relation, with the first few being

r_1=2pisum_(k=1)^(infty)sech((2kpi^2)/(ln2))
(79)
r_2=(2pi)/(ln2)sum_(k=1)^(infty)2kpicsch((2kpi^2)/(ln2))
(80)

(Maze and Minder 2005). These sums can also be done in closed form using q-polygamma functions psi_q^((k))(z), giving for example

r_1=-2ipsi_(sqrt(2))(-ipil_2)-2ipsi_(sqrt(2))(ipil_2)-1/2l_2^(-1)-3pi
(81)
r_2=-2l_2psi_(sqrt(2))^((1))(-ipil_2)-2l_2psi_(sqrt(2))^((1))(ipil_2)-1/4l_2^(-1)+1,
(82)

with l_2=ln2.

An amusing almost integer involving units of length is given by

 (inches/mile)/(astronomical units/light year)=0.99812...,
(83)

and one involving lengths, time, and speed is given by

 ((astronomical units/day)^2)/((speed of light)(meters/second))=10000.06...
(84)

(J. Martin-Garcia, pers. comm., Jun 25, 2022).

If combinations of physical and mathematical constants are allowed and taken in SI units, the following quantities have a near-integer numeric prefactor

(cek)/h=1.0008m A/(s K)
(85)
(P_b+7/9)(epsilon_0R_infty^2)=1000.0F/m^3
(86)

(M. Trott, pers. comm. Apr. 28, 2011), the first of which was apparently noticed by Weisskopf. Here, c is the speed of light, e is the elementary charge, k is Boltzmann's constant, h is Planck's constant, P_b is the bond percolation threshold for a 4-dimensional hypercube lattice, epsilon_0 is the vacuum permittivity, and R_infty is the Rydberg constant. Another famous example of this sort is Wyler's constant, which approximates the (dimensionless) fine structure constant in terms of fundamental mathematical constants.


See also

Almost Prime, Almost Zero, Apéry's Constant Approximations, Catalan's Constant Approximations, Class Number, e Approximations, Eddington Number, Euler-Mascheroni Constant Approximations, Feigenbaum Constant Approximations, Floor Function, Golden Ratio Approximations, j-Function, Khinchin's Constant Approximations, Pi Approximations, Pisot Number, Triangle Dissection, Uniformity Conjecture, Wyler's Constant

Explore with Wolfram|Alpha

References

Berndt, B. C. Ramanujan's Notebooks, Part IV. New York: Springer-Verlag, pp. 90-91, 1994.Borwein, J.; Bailey, D.; and Girgensohn, R. "High Precision Fraud." §1.4 in Experimentation in Mathematics: Computational Paths to Discovery. Wellesley, MA: A K Peters, pp. 11-15, 2004.Borwein, J. M. and Borwein, P. B. "Strange Series and High Precision Fraud." Amer. Math. Monthly 99, 622-640, 1992.Cohen, H. "Elliptic Curves." In From Number Theory to Physics (Ed. M. Waldschmidt, P. Moussa, J.-M. Luck, and C. Itzykson). New York: Springer-Verlag, pp. 212-237, 1992.Greenwald, S. "Dr. Sarah's Futurama pik--Mathematics in the Year 3000." http://www.mathsci.appstate.edu/~sjg/futurama/.Hermite, C. "Sur la théorie des équations modulaires." Comptes Rendus Acad. Sci. Paris 48, 1079-1084 and 1095-1102, 1859.Hermite, C. "Sur la théorie des équations modulaires." Comptes Rendus Acad. Sci. Paris 49, 16-24, 110-118, and 141-144, 1859.Kronecker, L. "Über die Klassenzahl der aus Wurzeln der Einheit gebildeten komplexen Zahlen." Monatsber. K. Preuss. Akad. Wiss. Berlin, 340-345. 1863.Le Lionnais, F. Les nombres remarquables. Paris: Hermann, 1983.Maze, G. and Minder, L. "A New Family of Almost Identities." 28 Jun 2005. http://www.arxiv.org/abs/math.GM/0409014/.Pegg, E. Jr. http://www.mathpuzzle.com/WIWWTP.gif.Pegg, E. Jr. "Math Games: Keen Approximations." Feb. 14, 2005. http://www.maa.org/editorial/mathgames/mathgames_02_14_05.html.Prudnikov, A. P.; Brychkov, Yu. A.; and Marichev, O. I. Integrals and Series, Vol. 1: Elementary Functions. New York: Gordon & Breach, 1986.Ramanujan, S. "Modular Equations and Approximations to pi." Quart. J. Pure Appl. Math. 45, 350-372, 1913-14.Roberts, J. The Lure of the Integers. Washington, DC: Math. Assoc. Amer., 1992.Rogers, D. "Homer Math Catches Up with the News." San Francisco Chronicle, p. B-7. Dec. 16, 2005. http://www.sfgate.com/cgi-bin/article.cgi?file=/chronicle/archive/2005/12/16/EDG7RG8FGG1.DTL.Sloane, N. J. A. Sequences A034172, A096613, A114609, and A114610 in "The On-Line Encyclopedia of Integer Sequences."Smith, H. J. S. Report on the Theory of Numbers. New York: Chelsea, 1965.Stillwell, J. "Modular Miracles." Amer. Math. Monthly 108, 70-76, 2001.Stoschek, E. "Modul 33: Algames with Numbers." http://marvin.sn.schule.de/~inftreff/modul33/task33.htm.Trott, M. The Mathematica GuideBook for Programming. New York: Springer-Verlag, 2004. http://www.mathematicaguidebooks.org/.Waldschmidt, M. "Some Transcendental Aspects of Ramanujan's Work." In Ramanujan Revisited: Proceedings of the Centenary Conference, University of Illinois at Urbana-Champaign, June 1-5, 1987 (Ed. G. E. Andrews, B. C. Berndt, and R. A. Rankin). New York: Academic Press, pp. 57-76, 1988a.Waldschmidt, M. In Ramanujan Centennial International Conference (Ed. R. Balakrishnan, K. S. Padmanabhan, and V. Thangaraj). Ramanujan Math. Soc., 1988b.

Referenced on Wolfram|Alpha

Almost Integer

Cite this as:

Weisstein, Eric W. "Almost Integer." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/AlmostInteger.html

Subject classifications