🔴 Riddle #223 of 240
Consider the 5 × 5 grid of lattice points that forms the corners of a 4 × 4 chessboard's squares. Counting squares of every size and every tilt whose four corners are lattice points (not just the axis-aligned ones), how many squares are there in total?
Think about it first. When you're ready:
50 squares
Enumerating all four-point subsets of the 25 lattice points and testing for squares gives 50, including 20 tilted ones.