1047: Approximations

Explain xkcd: It's 'cause you're dumb.
Revision as of 20:57, 17 May 2014 by (talk) (Transcript: added parenthesis in (e<sup>8</sup> - 10) / ϕ)
Jump to: navigation, search
Two tips: 1) 8675309 is not just prime, it's a twin prime, and 2) if you ever find yourself raising log(anything)^e or taking the pi-th root of anything, set down the marker and back away from the whiteboard; something has gone horribly wrong.
Title text: Two tips: 1) 8675309 is not just prime, it's a twin prime, and 2) if you ever find yourself raising log(anything)^e or taking the pi-th root of anything, set down the marker and back away from the whiteboard; something has gone horribly wrong.
Ambox notice.png This explanation may be incomplete or incorrect: The layout is still bad. And the cos(pi/7) + cos(3pi/7) + cos(5pi/7) issue is still not explained. See discussion.
If you can address this issue, please edit the page! Thanks.


This comic lists some approximations for numbers, most of them mathematical and physical constants. All of them work astonishingly well. There are reoccurring math jokes along the lines of, “3/5 + π/(7 – π) – √2 = 0, but your calculator is probably not good enough to compute this correctly”, which are mainly used to troll geeks.

Furthermore, there are some useful approximations (which were even more useful in times before calculators) such as “pi is approximately equal to 22/7”.

Randall makes fun of both of these, using rather strange approximations (honestly: you may handle 22/7, but who can calculate in a sensible way with 99^8, let alone 30^(pi^e)?) to calculate some constants that are easy enough to handle in the decimal system, and stating such “slightly wrong” trick equations, one of which is actually correct (which may astonish only those who are not familiar with cosines).

Name and formula proposed: Formula proposed: Resulting approximate value: Correct value: Discussion:
One light year(m) 998 9,227,446,944,279,201 9.46x1015 998 and 698 are sexual references.
Earth Surface(m2) 698 513,798,374,428,641 998 and 698 are sexual references.
Ocean's volume(m3) 919 1,350,851,717,672,992,089
Seconds in a year 754 31,640,625 31,557,600 (Julian calendar) 31,556,952 (Gregorian calendar) After this comic was released Randall got many responses by viewers. So he did add this statement to the top of the comic page:

"Lots of emails mention the physicist favorite, 1 year = pi x 107 seconds. 754 is a hair more accurate, but it's hard to top 3,141,592's elegance." Pi x 107 is nearly equal to 31,415,926.536, and 754 is exactly 31,640,625. Randall's elegance belongs to the number pi, but it should be multiplied by the factor of ten.

Using the traditional definitions that a second is 1/60th of a minute, a minute is 1/60th of an hour, and an hour is 1/24th of a day, a 365-day year is exactly 31,536,000 seconds (the "rent method approximation). Until the calendar was reformed by Pope Gregory, there was one leap year in every four years, making the average year 365.25 days, or 31,557,600. On the current calendar system, there are only 97 leap years in every 400 years, making the average year 365.2425 days, or 31,556,952 seconds. In technical usage, a "second" is now defined based on physical constants, even though the length of a day varies inversely with the changing angular velocity of the earth. To keep the official time synchronized with the rotation of the earth, a "leap second" is occasionally added, resulting in a slightly longer year.

Seconds in a year (rent method) 525,600 x 60 31,536,000 31,557,600 (Julian calendar) 31,556,952 (Gregorian calendar) “Rent Method” refers to the song “Seasons of Love” from the musical “Rent.” The song asks, “How do you measure a year?” One line says “525,600 minutes” while most of the rest of the song suggests the best way to measure a year is moments shared with a loved one.
Age of the universe (seconds) 1515 437,893,890,380,859,375
Planck's constant 1/(30πe) 6.68499014108082*10-34 (rounded) 6.626x10-34 Informally, the Planck constant is the smallest action possible in quantum mechanics.
Fine structure constant 1/140 0.00714285717142857171428571, etc. (repeating 71428571) Approximately 0.007297, close to 1/137 The fine structure constant indicates the strength of electromagnetism. It is unitless and around 0.007297, close to 1/137. At one point it was believed to be exactly the reciprocal of 137, and many people have tried to find a simple formula explaining this (with a pinch of numerology thrown in at times), including the infamous Sir Arthur Adding-One.
Fundamental charge 3/(14 * πππ) 1.59895121062716*10-19 (rounded) 1.602x10-19
Telephone number for the White House Switchboard 1/

π√(e(1 + (e-1)√8)

.2024561414 (truncated) 2024561414
Jenny's Constant (7(e/1 - 1/e) - 9) * π2 867.530901981685 (approximately) 8675309 Jenny's constant comes from Tommy Tutone's tune 867-5309/Jenny. The number 8675309 at the title text refers to the song 867-5309/Jenny as mentioned above, causing a fad of people dialing this number and asking for "Jenny". The number is in fact a twin prime because 8675311 is also a prime. Twin primes have always been a subject of interest, because they are comparatively rare, and because it is not yet known whether there are infinitely many of them.
World Population Estimate Equivalent to 6+((3/4 Year + 1/4 (Year mod 4) - 1499)/10) billion 2005 6.5

2006 6.6 2007 6.7 2008 6.7 2009 6.8 2010 6.9 2011 7 2012 7 2013 7.1 2014 7.2 2015 7.3 2016 7.3 2017 7.4 2018 7.5 2019 7.6 2020 7.6 2021 7.7 2022 7.8 2023 7.9 2024 7.9 2025 8 2026 8.1 2027 8.2 2028 8.2 2029 8.3 2030 8.4 2031 8.5 2032 8.5

U.S. Population Estimate Equivalent to 310+3*(Year - 2010) million 2000 280

2001 283 2002 286 2003 289 2004 292 2005 295 2006 298 2007 301 2008 304 2009 307 2010 310 2011 313 2012 316 2013 319 2014 322 2015 325 2016 328 2017 331 2018 334 2019 337 2020 340 2021 343 2022 346 2023 349 2024 352 2025 355 2026 358 2027 361 2028 364 2029 367 2030 370 2031 373 2032 376

Electron rest energy e/716 Joules 8.17948276564429*10-14
Light-year(miles) 2(42.42) 5884267614436.97 (rounded) 42 is, according to Douglas Adams' The Hitchhiker's Guide to the Galaxy, the Answer to the Ultimate Question of Life, the Universe, and Everything.
sin(60°) = 3√/2 e/π 0.8652559794 (rounded) 0.8660254038 (rounded)
√3 2e/π 1.7305119589 (rounded) 1.7320508076 (rounded)
gamma(Euler's gamma constant) 1/√3 0.5773502692 (rounded)
Feet in a meter 5/(e√π) 3.2815481951 1/.3048 (exact) = 3.280839895 (rounded)
√5 2/e + 3/2 2.2357588823 (rounded) 2.2360679775 (rounded)
Avogadro's number 69π√5 6.02191201246329*1023 (rounded)
Gravitational constant G 1 / e(pi - 1)(pi + 1) 6.67361106850561*10-11 (rounded) The gravitational constant relates to, uh, gravity.
R(gas constant) (e+1) √5 8.3143309279 (rounded) The gas constant relates energy to temperature in physics, as well as a gas's volume, pressure, temperature and molar amount (hence the name).
Proton-electron mass ratio 6*π5 1836.1181087117 (rounded)
Liters in a gallon 3 + π/4 3.7853981634 (rounded)
g 6 + ln(45) 9.8066624898 (rounded) The constant "g" is not a fundamental constant, but rather the local value of the acceleration caused the earth's gravity on the surface of the earth. The actual acceleration caused by earth's gravity varies with altitude, latitude, and local geologic features, making the "constant" somewhat arbitrary.
Proton-electron mass ratio e8 - 10 / ϕ 2974.7776471542 (rounded) ϕ is the golden ratio, or (1 + √5)/2. It has many interesting geometrical properties.
Ruby laser wavelength 1 / (12002) .00000069444444444444... (repeating decimal) The ruby laser wavelength varies because “ruby” is not clearly defined.
Mean Earth Radius (58)*6e 2343750e (exact), 6,370,973.035450887 (6370 km, 973 m, 3 cm, 5 mm, 450,887 nm) (rounded) The mean earth radius varies because there is not one single way to make a sphere out of the earth. Randall's value lies within the actual variation of Earth's radius.
√2 3/5 + π/(7-π) 1.4142200581 (rounded) 1.4142135624 (rounded)
cos(π/7) + cos(3π/7) + cos(5π/7) 1/2 0.5 0.5 (exact) The correct equation in the "Pro tip - Not all of these are wrong" section is cos(pi/7) + cos(3pi/7) + cos(5pi/7) = 1/2 as shown here. If you're still confused, the functions use radians, not degrees.
γ(Euler's gamma constant) e/34 + e/5 0.5772154006 (rounded) In mathematics, the Euler-Mascheroni constant (Euler gamma constant) is a mysterious number describing the relationship between the harmonic series and the natural logarithm.
√5 (13 + 4π) / (24 - 4π) 2.2360678094 (rounded) 2.2360679775 (rounded)
Σ 1/nn ln(3)e 1.2912987577 (rounded) 1.2912859971 (rounded)

Pi is a natural constant that arises in describing circles or ellipses. As such, useful as it may be, it doesn't usually occur anywhere in an exponent. When it does, such as with complex numbers, taking the pi-th root is rarely helpful. For example, if we try to derive:

eπi + 1 = 0

eπi = -1

(ei)π = -1

ei = π√(-1)

We get nowhere.

Same goes for the e-th power: e typically appears in the basis of a power (forming the exponential function), not in the exponent. (This is later referenced in Lethal Neutrinos).

The software referred to in the comic is ries, a 'reverse calculator' which forms equations matching a given number.


A table of slightly wrong equations and identities useful for approximations and/or trolling teachers.
(Found using a mix of trial-and-error, Mathematica, and Robert Munafo's Ries tool.)
All units are SI MKS unless otherwise noted.
Relation: Accurate to within:
One light year(m) 998 one part in 40
Earth Surface(m2) 698 one part in 130
Ocean's volume(m3) 919 one part in 70
Seconds in a year 754 one part in 400
Seconds in a year (rent method) 525,600 x 60 one part in 1400
Age of the universe (seconds) 1515 one part in 70
Planck's constant 1/(30πe) one part in 110
Fine structure constant 1/140 [I've had enough of this 137 crap]
Fundamental charge 3/(14 * πππ) one part in 500
White House Switchboard 1/

π√(e(1 + (e-1)√8)

Jenny's Constant (7(e/1 - 1/e) - 9) * π2
World Population Estimate
which should stay current
for a decade or two:

Take the last two digits of the current year

Example: 20[14]

Subtract the number of leap years since hurricane Katrina

Example:14 (minus 2008 and 2012) is 12

Add a decimal point

Example: 1.2

Add 6

Example: 6 + 1.2

7.2 = World population in billions.

Version for US population:

Example: 20[14]

Subtract 10

Example: 4

Multiply by 3

Example: 12

Add 10

Example: 3[22] million

Electron rest energy e/716 Joules one part in 1000
Light-year(miles) 2(42.42) one part in 1000
sin(60°) = 3√/2 = e/π one part in 1000
√3 = 2e/π one part in 1000
gamma(Euler's gamma constant) 1/√3 One part in 4000
Feet in a meter 5/(e√π) one part in 4000
√5 = 2/e + 3/2 one part in 7000
Avogadro's number 69π√5 one part in 25,000
Gravitational constant G 1 / e(pi - 1)(pi + 1) one part in 25,000
R(gas constant) (e+1) √5 one part in 50,000
Proton-electron mass ratio 6*π5 one part in 50,000
Liters in a gallon 3 + π/4 one part in 500,000
g 6 + ln(45) one part in 750,000
Proton-electron mass ratio (e8 - 10) / ϕ one part in 5,000,000
Ruby laser wavelength 1 / (12002) [within actual variation]
Mean Earth Radius (58)*6e [within actual variation]
Protip - not all of these are wrong:
√2 = 3/5 + π/(7-π) cos(π/7) + cos(3π/7) + cos(5π/7) = 1/2
γ(Euler's gamma constant) = e/34 + e/5 √5 = (13 + 4π) / (24 - 4π) Σ 1/nn = ln(3)e

comment.png add a comment! ⋅ comment.png add a topic (use sparingly)! ⋅ Icons-mini-action refresh blue.gif refresh comments!


The US population estimate is now off by 7 million, although 2018 just started. Even so, in December 2017, it would have been 4 million off. 625571b7-aa66-4f98-ac5c-92464cfb4ed8 (talk) 00:54, 19 January 2018 (UTC)

Off by 7 million out of 7-8 billion means that it's accurate to one part in 1,000. That's consistent with it's location in the chart -- next to other values that are accurate to 1 in 1,000. -- Redbelly98 (talk) (please sign your comments with ~~~~)

The world population estimate is still accurate to within .1 billion. 13:41, 5 May 2017 (UTC)

They're actually quite accurate. I've used these in calculations, and they seem to give close enough answers. Davidy22[talk] 14:03, 8 January 2013 (UTC)

I only see a use for the liters in a gallon one. The rest are for trolling or simple amusement. The cosine identity bit our math team in the butt at a competition. It was painful. --Quicksilver (talk) 05:27, 17 August 2013 (UTC)

Annoyingly this explanation does not cover 42 properly, it does not say that Douglas Adams got the number 42 from Lewis Carroll, who is more relevant to the page because he was a mathematician named Charles Lutwidge Dodgson. He was obsessed with the number forty-two. The original plate illustrations of Alice in Wonderland drawn by him numbered forty-two. Rule Forty-Two in Alice in Wonderland is "All persons more than a mile high to leave the court", There is also a Code of Honour in the preface of The Hunting of the Snark, an extremely long poem written by him when he was 42 years old, in which rule forty-two is "No one shall speak to the Man at the Helm". The queens in Alice Through the Looking Glass the White Queen announces her age as "one hundred and one, five months and a day", which - if the best possible date is assumed for the action of Through the Looking-Glass - gives a total of 37,044 days. With the further (textually unconfirmed) assumption that both Queens were born on the same day their combined age becomes 74,088 days, which is 42 x 42 x 42. -- 02:43, 29 August 2013 (UTC)

This explanation covers 42 adequately, and would probably be made slightly worse if such information were added. The very widely known cultural reference is to Adams's interpretation, not Dodgson's original obsession. Adding it would be akin to introducing the MPLM into the explanation for the hijacking of Renaissance artists' names by the TMNT. I definitely concede that it does not cover 42 exhaustively, but I think it can be considered complete and in working order without such an addition. If it really irks you, be bold and add it! --Quicksilver (talk) 00:37, 30 August 2013 (UTC)

"sqrt(2) is not even algebraic in the quotient field of Z[pi]" is not correct. Q is part of the quotient field of Z[pi] and sqrt(2) is algebraic of it. The needed facts are that pi is not algebraic, but the formula implies it is in Q(sqrt(2)). --DrMath 06:47, 7 September 2013 (UTC)

13/15 is a better approximation to sqrt(3)/2 than is e/pi. Continued fraction approximations are great! --DrMath 07:23, 7 September 2013 (UTC)

How could he forget 1 gallon ≈ 0.1337 ft³?! 00:51, 8 September 2013 (UTC)

Worth mentioning that Wolfram Alpha now officially recognizes the White House switchboard constant and the Jenny constant. 18:28, 8 October 2013 (UTC)

Maybe we should add the [Extension:LaTeXSVG LaTeX extension] to make it easier to transcribe these equations. -- 23:02, 16 December 2013 (UTC)

Protip - Does anyone see the correct equation?

Maybe this is just an other Wolfram Alpha error, like we recently have had here: 1292: Pi vs. Tau. All equations still look invalid to me.

  • √2 = 3/5 + π/(7-π): is impossible because √2 is an irrational number and no equation can match.
  • cos(π/7) + cos(3π/7) + cos(5π/7) = 1/2: could only match if cos(x) + cos(3x) + cos(5x) = 1/2 would be valid, because π/7 is also an irrational number.
  • γ = e/34 + e/5 or γ = e/54 + e/5: would mean that a sum of two irrational numbers do fit to the Gamma Constant. Impossible.
  • √5 = 13 + 4π / 24 - 4π: √5 and π are irrational numbers, there is no way to match them in any equation like this.
  • Σ 1/nn = ln(3)e: doesn't make any sense either.

Maybe Miss Lenhart can help. --Dgbrt (talk) 21:41, 17 December 2013 (UTC)

cos(π/7) + cos(3π/7) + cos(5π/7) = 1/2 is exactly correct.

Let a=π/7, b=3π/7, and c=5π/7, then (cosa+cosb+cosc)⋅2sina=2cosasina+2cosbsina+2coscsina=sin2a+sin(b+a)−sin(b−a)+sin(c+a)−sin(c−a)=sin(2π/7)+sin(4π/7)−sin(2π/7)+sin(6π/7)−sin(4π/7)=sin(6π/7)=sin(π/7)=sina

Hence, cos(π/7) + cos(3π/7) + cos(5π/7) = sin(π/7) / 2sin(π/7) = 1/2 01:57, 16 January 2014 (UTC)

What is this: sin(6π/7)=sin(π/7) ? A new math is born... --Dgbrt (talk) 20:49, 16 January 2014 (UTC)
Actually it does. My proof is geometric: the sines of two supplementary angles (angle a + angle b = π (in radians)) are equivalent because they necessarily have the same x height in a Cartesian plane. Look on a unit circle, or even a sine function. Also, Calculus and most other mathematics use radians over degrees because they make the functions simpler and eliminate irrationality when a trig function shows up, but physics uses degrees because it's easier to understand and taught first. Anonymous 01:27, 13 February 2014 (UTC)
As an aside, just how far along in math are you? Radian measure is taught in high school (at least the good ones). Anonymous 13:24, 13 February 2014 (UTC)
Sure, I was wrong at my last statement. sin(6π/7)=sin(π/7) is correct by using the radian measure. But just change π/7 to π/77 would give a very different result on that formular here. I still can't figure out why PI divided by the number 7 should be that unique, PI divided by 77 should be the same. My fault is: I still can't find the Nerd Sniping here. And we all do know that Randall did use wrong WolframAlpha results here. According to the last question: I'm very well on Math, that's because I want to understand this. This is like 0.999=1. --Dgbrt (talk) 22:01, 13 February 2014 (UTC)
Ah, I see. I think it has to do with the way e^i*π breaks down, as one of the answers shown in the corresponding link explains, but other answers rely on various angle identities (including the supplementary sines one in the proof above). Anonymous 03:10, 14 February 2014 (UTC) (PS, have you checked 545 lately? I answered your question there, too)
As per the derivation from january 16 , you can use any a,b,c that satisfies this set of equations: 2 a = b - a, a + b = c- a, c + a = π - a. This is due to the fact that sin(x) = sin(π-x), and what was derived the 16th. 12:38, 21 February 2014 (UTC)
Dgbrt: If not convinced by the proofs linked to in the "explanation" part, you might want to try this: [1]. I'm sure you'll find inspiration for similar formulas using PI over [any odd integer]. Your assumption that Randall used WolframAlpha for this very identity is probably wrong. This is a very well-known formula that appears in many high school books, and I am pretty sure it is part of Randall's culture. And this has nothing to do with 1=1. As for your original post,
  • √2 = (√2-1)/((4-2)π/2-π)+1 : Is this what you call "matching an equation" to √2?
  • So what you mean is that if an equation is true for an irrational number, then it must be for any real number? Like, (√2)^2 = 2, but because √2 is irrational, then x^2=2 (for all x?)
  • This one's a bit tough. You will probably agree that γ-√2 is irrational. And so is √2. What about their sum?
  • Well, maybe it doesn't to you. But is Σ n-2 = π^2/6 any better? Well, this one is true (using Fourier's expansion of the rectangular function).
  • √2 = 3/5 + π/(7-π) is false because it would imply that π is an algebraic number
  • cos(π/7) + cos(3π/7) + cos(5π/7) = 1/2 is true, and proven by many
  • γ = e/34 + e/5 seems false. But there doesn't seem to be a quick way to disprove.
  • Σ 1/nn = ln(3)e seems false, but I can't see why. 09:15, 11 May 2014 (UTC)
Dgbrt, yes, sin(6π/7)=sin(π/7). Simple proof: sin(6π/7)=sin(π-π/7)=sin(π)cos(-π/7)+cos(π)sin(-π/7)=0*cos(-π/7)+(-1)*(-sin(π/7))=0+sin(π/7)=sin(π/7) 02:34, 20 May 2014 (UTC)
So, still incomplete?

Where's our (in)complete judge? 19:21, 18 December 2013 (UTC)

The protip is still a mystery. I'm calling for help a few lines above. --Dgbrt (talk) 21:16, 18 December 2013 (UTC)
The cosine one, in radians, is correct 12:54, 28 April 2014 (UTC)

The 'Seconds in a year' ones remind me of one of my favorite quotes: "How many seconds are there in a year? If I tell you there are 3.155 x 10^7, you won't even try to remember it. On the other hand, who could forget that, to within half a percent, pi seconds is a nanocentury" -- Tom Duff, Bell Labs. Beolach (talk) 19:14, 17 April 2014 (UTC)

Please do not change former discussions. --Dgbrt (talk) 23:57, 17 April 2014 (UTC)

cos(pi/7) + cos(3pi/7) + cos(5pi/7) = 1/2 ???

Why the hell the divider seven makes the difference?

  • cos(pi) + cos(3*pi) + cos(5*pi) = -3
  • cos(pi/8) + cos(3*pi/8) + cos(5*pi/8) = 0.92387953251128675612818318939678828682241662586364...

So why the "magic" prime number seven produces this exact result? I know radians and π/7 is just a small part of a circle which is 2π. One prove claims that sin(6π/7) equals to sin(π/7); my best calculator can't show a difference. Of course sin(6π) equals to sin(π), in radians, BUT sin(6π/8) is NOT equal to sin(π/8). So if the number 7 plays a magic rule here this would be "one of the", no... the BIGGEST mystery in mathematics forever. --Dgbrt (talk) 23:03, 16 May 2014 (UTC)

Dgbrt, please see my answer from 11 May 2014 up there. Any odd integer will do, as long as you sum enough of cos(pi/[thing]).
  • Let's try with 5 : cos(pi/5) + cos (3pi/5) = 1/2.
  • With 9 : cos(pi/9)+ cos(3pi/9) + cos (5pi/9) + cos(7pi/9) = 1/2
No big mystery around here. Just a beautiful formula :) I think there are similar formulas with cosines and even integers. I'll post them here if I have time. Varal7 (talk) 09:56, 17 May 2014 (UTC)
You mixing up to different equations and even not prove them. If there is any prove to a mathematician I would accept and include a proper explain for non math people here. We still have to find a prove. And I do not trust my calculators, we just have to explain why even cos(pi/5) + cos (3pi/5) is also nearly the same. This issue is still not explained. So please give us a explain. And a PROTIP: This does not work with Integers, PI is infinite--Dgbrt (talk) 17:55, 17 May 2014 (UTC)

Okay. If I understood what you said.
  • I mix up different topics. -> True. From now on, we'll just focus on the cosine one.
  • You ask for a proof/explanation. -> My opinion is those are two different requests. Maybe that's why you use the distinction between math people/not math people. For a proof, please read further. What I exposed above are just other "fun experiments" we could do. e.g : [2].
  • You do not trust your calculators -> Great. I don't either. (Well more accurately, I trust mine to 10^-8, so I would definitely not use it to prove any of the discussed equations in PROTIP). That's why we'll prove the formulas we assert.
  • "This does not work with integers" -> Well, I got myself misunderstood. It would probably have been better if I had said: the following formula is true for all integer n. sum_{k=0}^{n-1}{cos((2k+1)*pi/(2n+1)). But It's harder to read, so just say. Choose any odd integer, say N=2n+1. Then start the following sum. cos(pi/N) + cos(3pi/N) + … and stop when the numerator is cos((N-2)pi/N). Then the result is 1/2. And that's what we'll prove, a few lines down from here.
  • "Pi is infinite" -> That's a common misconception. What you mean is, Pi is irrational. (Fun fact: Pi is a transcendental number. Quite difficult theorem. Lindeman proved it in 1882. Hence, if we identify the real number x with the Q-vector space Q[x], it would make sense to say that "x is infinite" because, the Q-vector space Q[x] is indeed of infinite dimension. But then, that's not what mathematicians do). I think Vi Hart made a video where she addresses this issue (or was it someone else?). Anyway, I might come to that point some other time in the future.
Okay, so now let's first prove the protip formula. Well first, here is the link that the explainxkcd wiki points to: [3]. Most of them are correct. Some are more ugly than others. I'll adapt the last one.
We need a complex numbers. (I choosed this because I think explainxkcd readers are fine with this. See comic 179). I will be using dots to show the steps of my proof. Please allow me an extra level of indent for clarity's sake.
*Let z be a primitive 14-th root of unity (the reader doesn't need to understand the 3 last words). Just say z = exp(i*pi/7) = cos(pi/7) + i sin(pi/7). Using Euler's formula.
*We have z^14-1 = (exp(i*pi/7))^14-1 = exp(i*2pi) - 1 = 0. Using exponential law for integer powers, as seen in this article: De Moivre's formula.
*Now let's factor: z^14-1 = (z^7-1)(z^7+1) = (z^7-1)(z+1)(z^6-z^5+z^4-z^3+z^2-z+1) = (z^7-1)(z+1)*Phi_14(z). where Phi_14(X)= X^6-X^5+X^4-X^3+X^2-X+1, (see cycltomic polynomial). Now, because z^7-1 = (exp(i*pi/7))^7-1 = exp(i*pi)-1 = -2. And because z is not -1, the two first factors are not 0 so, Phi_14(z) = 0, which is already a pretty awesome equality.
*Note that exp(i*pi/7)*exp(i*6pi/7)= exp(i*pi)=-1. So the inverse of z is -exp(i*6pi/7). But we also know that it is exp(-i*pi/7). Well. That was just a fancy way to prove that exp(-i*pi/7) = - exp(i*6pi/7). Good enough. The same holds for exp(-i*3pi/7) = exp(i*14pi/7)*exp(-i*3pi/7)=exp(i*11pi/7)=exp(i*7pi/7)*exp(i*4pi/7)=-exp(i*4pi/7). And the exact same calculation shows that exp(-i*5pi/7)=-exp(i*2pi/7). Alright.
*Now, use that for any x, we have cos(x) = (exp(ix)+exp(-ix))/2. See here. Let's calculate twice the sum of the left hand side. 2(cos(pi/7)+cos(3pi/7)+cos(5pi/7))= exp(i*pi/7) + expi(-i*pi/7) + exp(3pi/7) + exp(-3pi/7) + exp(5pi/7) +exp(-5pi/7) = exp(i*pi/7)-exp(i*2pi/7)+exp(i*3pi/7)-exp(i*4pi/7)+exp(i*5pi/7)-exp(i*6pi/7) = -Phi_14(z) +1 = 1.
* So dividing both sides by 2, we get what we want. Pfew.
Why is 7 so special? Well it isn't. Let's prove it for 9.
  • Let z = exp(i*pi/9) = cos(pi/9) + i sin(pi/9). We have z^18-1 = 0, and z^9-1 and z+1 are not 0, so using the same factorisation, Phi_18(z) = z^8-z^7+z^6-z^5+z^4-z^3+z^2-z+1 = 0.
  • Hence, the conclusion follow from: 2(cos(pi/9) + cos(3pi/9) + cos(5pi/9) + cos(7pi/9)) = exp(i*pi/9) + exp(-i*pi/9) + exp(i*3pi/9) + exp(-i*3pi/9) + exp(i*5pi/9) + exp(-i*5pi/9) + exp(i*7pi/9) + exp(-i*7pi/9) = -Phi_18(z)+1 = 1.
Well, well. I hope you kinda see the pattern. Dgbrt, I know you hate typos, and I'm pretty sure that in this long text lay many of them. So I apologize, and I will correct them later. The following paragraph was posted after I started my text but before I finished mine. It wasn't signed so I will just leave it down there. It's another valid straightforward proof. Oh. And Friendly TIP: Don't say protip when you're not pro. Varal7 (talk) 21:50, 17 May 2014 (UTC)

The valid identity cos(pi/7)+cos(3pi/7)+cos(5pi/7)=1/2 was correctly proved by the writer at above. For a different proof, consider the complex number z = cos(pi/7)+i sin(pi/7) corresponding to rotation of the complex plane by pi/7 radians, i.e., 1/14th of a full rotation. It satisfies z^{14} -1 = 0 (z to the fourteenth is one). Dividing by z-1 gives z^{13} + z^{12} + ... + z + 1 = 0. The same argument, starting with z^2 corresponding to 1/7th of a full rotation, gives z^{12} + z^{10} + ... z^2 + 1 = 0. Taking the difference, we get z^{13} + z^{11} + ... + z^3 + z = 0. Looking only at the real parts, we get cos(13pi/7) + cos(11pi/7) + cos(9pi/7) + cos(7pi/7) + cos(5pi/7) + cos(3pi/7) + cos(pi/7) = 0. Here cos(13pi/7) = cos(pi/7), cos(11pi/7) = cos(3pi/7) and cos(9pi/7) = cos(5pi/7), since cos is even and 2pi-periodic. Finally cos(7pi/7) = -1, so 2(cos(pi/7) + cos(3pi/7) + cos(5pi/7)) - 1 = 0, which you can rewrite as the desired identity. All of this can be clearly visualized using a regular 14-gon, so a proof with pictures is possible. (talk) (please sign your comments with ~~~~)

99 is sexual reference?

In first explanation it says: "99^8 and 69^8 are sexual references". 69 I understand, but what would 99 refer too? -- 17:38, 18 May 2014 (UTC)

see 487: Numerical Sex Positions141.101.70.181 15:33, 20 July 2014 (UTC)

I'd add pi = (9^2 + (19^2)/22)^(1/4) 02:41, 13 May 2015 (UTC)