A lattice point in the plane is a point of the form , where and are integers. Consider a set of lattice points. We construct the transform of , denoted by , by the following rule: the pair is in if and only if any of , , and is in . How many elements are in the set obtained by successively transforming times?
Solution
Transforming it times yields the 'diamond' of points such that . The diamond contains lattice points (this can be seen by rotating the plane 45 degrees and noticing the lattice points in the transforms form two squares, one of which is contained in the other), so the answer is 421.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.