The puzzle
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
Define fi(n) to be the first i digits of the smallest number that can be divided by each of the numbers from 1 to n without any remainder.
For example, f3(10) = 252.
To find this cache, first calculate:
- f2(125),
- f2(64),
- f3(1370),
- 0,
- f1(81),
- f3(4158).