Idiots who keep arguing whether or not programming "is" or "is not" math need to read this. Call it "scientific commonsense".
There are three kinds of science. Formal science, natural science and social science. Natural sciences (like physics, chemistry, biology, geology and astronomy) and social sciences (like economics, political science, etc.) both rely on the scientific method of gathering observable, empirical and measurable evidence to study things -- they rely on an a posteriori knowledge. Formal sciences (like maths, computer science, logic, statistics, systems theory, information theory, control theory, and some aspects of linguistics), on the other hand, rely on a different, a priori method where axioms and inference rules are used to make theorems.
Now let me give you this little brainfuck: To say that computer science "is" math is like saying that chemistry "is" physics. Reality is that mathematics and computer science are two distinct fields of formal science, pretty much like physics and chemistry are two distinct fields of natural science. My analogy is actually accurate. The same way chemistry and physics overlap -- the same way we can say that chemistry exists more or less because of physics -- we can say that computer science and math overlap and that the former has existed because of the latter.
HOWEVER, sadly, that doesn't mean that the two aren't still distinct fields. And it doesn't say that every single thing in computer science requires math in order to be understood deeply. In a sense, computer science and math exist on two different abstraction levels, just like physics and chemistry do. And for that same reason, I cannot deny (and no body can) that people who understand math are better at understanding computer science and meta-linguistics, which all go hand-in-hand in what we call ``intelligence''.
Math is concerned with the ``what is'', whereas programming is concerned about the ``how to''. Contrary to what people think, programming is not unique to computer science. Programming is everywhere in life. But only in computer science will you see programming in such detail.