How do you write the # character in LaTeX?
\# ?
This works well in mathmode
\#
You just escape the #.