PROJECT EULER · #0045
Triangular, Pentagonal, and Hexagonal
Triangle, pentagonal, and hexagonal numbers are generated by the following formulae:
| Triangle | ||||
| Pentagonal | ||||
| Hexagonal |
It can be verified that
Find the next triangle number that is also pentagonal and hexagonal.
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.