The Year 2025
This interesting set of facts about 2025 was passed on to me by a friend of mine, and contains some unexpected relationships between these integer sets.
Sum of the cubes
It starts off by noticing that 2025 can be expressed as the sum of cubes:
In general, the sum of the first n cubes can be written like this:
Or, in python:
def sum_of_cubes(n):
return sum([i*i*i for i in range(n+1)])
These sums form a sequence 0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, ... and so there aren't many years which satisfy this equation. 2025 is the ninth in the sequence (if you start from 1, or tenth if you start from zero), so the previous year was 93 years ago and the next one is 103 years in the future — so this is probably the only one we'll live to see.
In summary, 2025 is the sum of the first 9 cubes. (if you start from 1)
Quartic in n
Many people will remember that the sum of the integers can be expressed more simply as a quadratic in n:
This can be shown by pairing up the 1 with the n, and the 2 with the (n-1) and so on, creating n/2 pairs of (n+1), giving the total sum shown. Or you can show it a different way by considering the expansion of x2 - (x-1)2 and summing that from x up to n.
In a similar way, you can expand x4 - (x-1)4 and sum that, giving an expression for the sum of the cubes without the repeated addition:
def quartic(n):
return n**2 * (n+1)**2 // 4
for n = 9,