Ramanujan's constant, $e^{\pi\sqrt{163}}$, is almost an integer. I know that this comes from the Laurent series for the $j$ function in terms of $e^{2\pi\tau}$: $$j(\tau)=q^{-1}+744+196884q+\dots$$ But I do not know exactly why this is. First of all, the $j$-function is defined in a horribly complicated and unintuitive way. Why is it even a modular form (or function, but I don't even know the difference)? More importantly, why is $j(\frac{-1+\sqrt{163}}2)$ an integer, and how does this relate to the class number of $Q(\sqrt{-163})$ being $1$? I have read that it has to do with similar quadratic forms, but how does this relate to the class number or the $j$-function?
EDIT: I realized I have no hope of understanding what is going on with proving that the outputs of the $j$-function to similar quadratic forms being conjugate. Thus, I instead ask:
- Why is the $j$-function modular? What's the difference between a modular form and a modular function?
- Why is the class number equal to the number of distinct similar quadratic forms?