Is there any way to grep a pdf document (originally written in LaTeX) for the math 2^n as in 2 to the power of n?  I have pdfgrep but I don't know how you would use that to grep for math.
How to grep a pdf for math?
grep;latex;math