We will count the number of integral solutions to ax+by+cz = n as a function of n. Pick's theorem will turn this into a problem of counting lattice points on a plane.