CS courses for a Math major

<p>Hello everyone, so I am a math major and I want to get PhD in mathematics an become a professor of mathematics eventually. (I know how hard what I want, let's assume for the moment things will go well, hopefully)</p>

<p>How much computer science or programming should I learn for the above purpose? What kind of CS courses should I take while I am in college?
Thank you in advance for your replies. </p>

<p>The introductory sequence of CS courses are typically useful for other majors looking to learn some foundational level CS knowledge that is often useful.</p>

<p>Depending on your area of interest in math, the CS courses in theory and cryptography may be of interest.</p>

<p>If you want to have CS as a backup employment option, consider also the CS courses in operating systems, networks, databases, algorithms, and security.</p>