Project Euler's problem 45 is related to figurate numbers, i.e. numbers that can be represented as geometrical patterns.
In particular, we are going to find a number greater than 40755 that is also triangular, pentagonal and hexagonal at the same time.
The proposed solution exploits some mathematical properties of these numbers and is made of a few lines of F# code.
Add your comment