Applications of Number Theory in Physics