In which transition is the photon of greater energy emitted, n = 3 to n = 1 or n = 2 to n = 1?

The transition from n = 3 to n = 1 would result in a photon with greater energy compared to the transition from n = 2 to n = 1. This is because the energy of the photon emitted is directly proportional to the difference in energy levels between the initial and final states. Since the energy levels are further apart in the transition from n = 3 to n = 1, the resulting photon would have greater energy.