Mathematics for Computer Science, by Eric Lehman and Tom Leighton. A more recent version of the textbook than the one referenced by John D. Cook is available here.