I have to say that my favourite book ever on Computer Science Mathematics is actually Applied Mathematics for Database Professionals, by APress. It gave me an extremely thorough understanding of logic, set theory, and disabused me of my incorrect notion that relational databases were because of ER diagrams :-)