Let be the integer lattice in . Two points in are called if they differ by exactly in one coordinate and are equal in all other coordinates. For which integers does there exist a set of points satisfying the following two conditions? If is in , then none of the neighbors of is in . If is not in , then exactly one of the neighbors of is in .
Solution
Such a set exists for every . To construct an example, define the function by then let be the preimage of 0.
To check condition (1), note that if and is a neighbor of differing only in coordinate , then and so .
To check condition (2), note that if is not in , then there exists a unique choice of such that is congruent to one of or modulo . The unique neighbor of in is then obtained by either subtracting from, or adding to, the -th coordinate of .
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.