In a letter to G.H Hardy on January $13^{\text{th}}$, Ramanujan posted this interesting continued fraction:$$\cfrac {1}{1+\cfrac {e^{-2\pi}}{1+\cfrac {e^{-4\pi}}{1+\cfrac {e^{-6\pi}}{1+\cfrac {e^{-8\pi}}{1+\ddots}}}}}=\left(\sqrt{\dfrac {5+\sqrt5}2}-\dfrac {1+\sqrt5}2\right)\sqrt[5]{e^{2\pi}}\tag1$$ I find this interesting that an infinite continued fraction can be represented by a finite nested radical!
Question:
- Is there a way to generate similar identities to $(1)$?
- How did Ramanujan come up with $(1)$ in the first place?