For a polygon whose corners sit on a lattice, the area is I + B/2 − 1, where I counts the lattice points strictly inside and B counts those on the boundary. A shape with 20 interior points and 16 boundary points therefore has area 20 + 16/2 − 1 = 27, which is the first screen. The formula deserves testing on the smallest cases available: a unit square has I = 0 and B = 4, giving 0 + 4/2 − 1 = 1, and a 2 × 2 square has I = 1 and B = 8, giving 1 + 8/2 − 1 = 4. Both are links on this page.
Nothing in the formula multiplies a length by a width — counting dots is sufficient — and that is why it is worth memorising. It does require a simple polygon, without holes or self-crossing, and it does not survive into three dimensions. The tetrahedron with corners (0,0,0), (1,0,0), (0,1,0) and (1,1,k) contains exactly four lattice points, its corners and nothing else, for every whole k, while its volume is k/6. Same lattice points, different volumes: no formula in counts alone can exist for solids, which is Reeve's 1957 observation and the reason lattice polyhedra are studied with more data than a tally.
Answer
27
How to read it
I + B/2 − 1 with I = 20 and B = 16. The other two links run the same formula on a unit square and a 2 × 2 square.
Source
Pick's theorem, A = I + B/2 − 1, published by Georg Alexander Pick in 1899; an equivalent statement appears in Karl Georg Christian von Staudt's geometry notes of 1860, and Hugo Steinhaus spread the result through Mathematical Snapshots
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.