Calculate the energy released when an electron is added to a hydrogen nucleus. Assume the transition is n= infinite to n=1. I know equation to use but how do I calculate when n is infinite and no number ?? Please some help

You will put 1 for n = 1. Put infinity (the symbol) for n in 1/n2 so 1/infinity = 0.