Cool or useful things I learned in math
Published October 14, 2025
Sum of natural numbers
The sum of the natural numbers up to a number is . This is useful in some video/board games with things like poison counters that decrease by one each turn. For example, if you have 30 poison counters where you each turn you take damage and decrease the poison counters, then in total after 30 turns you take total damage. You can also multiply this formula by a constant to get the sum of multiples of that constant, since
Power sets
In set theory, there is a thing called a power set, which is the set of all possible subsets of a given set. For example, if you have the set , the power set , where represents the set with no elements. You can easily determine the cardinality of the power set with the formula , where is the number of objects in . This lets you easily answer questions like how many ways are there to rehearse a string quartet? There are 4 members, so there are possible combinations of them (maybe 15 if you remove the empty set).
Squaring two digit numbers
You can easily square two digit numbers in your head with the formula , and choosing to make one of the numbers a multiple of 10. For example, you can do 67 squared by doing
Finding the square root of a number
You can accurately approximate the square root of a number by doing one iteration of Newton’s method in your head. The formula for Newton’s method is
Using it on a function like , where the zeroes of the function are , you get
So a good improvement on your guess is to subtract the difference of your guess squared and the number divided by twice your guess. In practice it is a lot easier than it seems. To find the square root of 67, you first see that it is close to 64, which is . So you can do
, which makes this a pretty good guess. Notice you don’t have to worry too much about the signs, since it’s intuitive that your approximation is going to be larger than 8.
Golden ratio
The golden ratio has the property
Contrapositive
A statement like if , then , is equivalent to saying if not , then not . These statements are known as the contrapositive of each other. For example, the Buddhist phrase “No mud, no lotus” is logically equivalent to the profound statement “Mud, lotus”.
Music theory
12-tone music relies on the fact that
The ratio between these numbers is about 1.01364, and is known as the Pythagorean comma. is the ratio of a perfect fifth, and we divide the octave into twelve notes precisely because after twelve perfect fifths you reach a note that is very close to a perfect octave.
Prime number theorem
The number of prime numbers less than a number is approximately . I don’t really know how this one works.