How many ways are there to win tic-tac-toe in ? (That is, how many lines pass through three of the lattice points in with each coordinate in ? Express your answer in terms of .
Solution
A line consists of three points. Each coordinate can do one of three things passing from the first point to the last point: increase by 1 each time, stay the same, or decrease by 1 each time. There are three ways to stay the same (three coordinates), one way to increase by 1, and one way to decrease by 1, so there are possible types of behavior. Determining this behavior uniquely determines the end point and start point except that we have traced every line exactly twice (forwards and backwards) and incorrectly counted the "lines" where each coordinate stays the same, so we subtract and divide by 2.
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.