Skip to content

Instantly share code, notes, and snippets.

@soodoku
Last active October 30, 2017 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soodoku/838d8596e0b2b2509d392b40aa060594 to your computer and use it in GitHub Desktop.
Save soodoku/838d8596e0b2b2509d392b40aa060594 to your computer and use it in GitHub Desktop.
Fun Math

Fun Math

Fun Fact 1

  • 1 - 1 + 1 - 1 + 1 - 1 + .... = 1/2
  • Proof (1) by Luigi Grandi:

S = 1 - 1 + 1 - 1 + 1 - 1 + ...
1 - S = 1 - (1 - 1 + 1 - 1 + 1 - 1 + ...)
= 1 - 1 + 1 - 1 + 1 - 1 + ...
= S

1 - S = S
S = 1/2

  • Proof (2):

Convergent series sum =
1 + 1/2 + 1/4 + 1/8 + 1/16 + ...

sum of 1 to n = 2 - 1/n

if n -> infinity, sum = 2

Another way to calculate convergent series sum = partial sums method =

1, (1/2) * (1 + 3/2), (1/3) * (1 + 3/2 + 7/4) + ....

each term = 2 - (1/n) * \sigma_1^n (1/i)

Use this for Grandi's series:

1, (1 + 0)/2, (1 + 0 + 1)/3, (1 + 0 + 1 + 0)/4, ... ----> 1/2

Fun Fact 2

  • 1 + 2 + 3 + 4 + ... = -1/12

  • Used often in string theory

  • Proof:

S_1 = 1 - 1 + 1 - 1 + ... ( = 1/2)
S_2 = 1 - 2 + 3 - 4 + 5 - 6 + ....
S = 1 + 2 + 3 + 4 + 5 + 6 + ....

S_2 + S_2
= 1 - 2 + 3 - 4 + 5 - 6 - ... +
1 - 2 + 3 - 4 + 5 + ...
= 1 - 1 + 1 - 1 + 1 - 1 + ..

2*S_2 = 1/2
S_2 = 1/4

S - S_2 = 1 + 2 + 3 + 4 + 5 + 6 + ...
- (1 - 2 + 3 - 4 + 5 - 6 + ....)
= 4 + 8 + 12 ....
= 4*S

S - S_2 = 4S
3
S = -S_2 = -1/4
S = -1/12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment