The American Mathematical Society database lists Lehrer as co-author of two papers:
RE Fagen & TA Lehrer "Random walks with restraining barrier as applied to the biased binary counter" Journal of the Society for Industrial Applied Mathematics vol. The album liner notes (and Lehrer himself in one routine) promote Tom Lehrer's songs using reverse psychology by deliberately quoting his negative reviews. The June 8 show was his only performance to date before Queen Elizabeth II.
S. Thomas Andrew Lehrer (born April 9 1928) is an American singer-songwriter satirist pianist and mathematician. In the early 1970s he retired from public performances to devote his time to teaching mathematics and music theatre at the University of California Santa Cruz.