← Complete problem index

PROJECT EULER · #0085

Counting Rectangles

Statement only · SolvedOriginal problem ↗

By counting carefully it can be seen that a rectangular grid measuring 3 by 2 contains eighteen rectangles:

Although there exists no rectangular grid that contains exactly two million rectangles, find the area of the grid with the nearest solution.

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.