If we consider an exited electron in state say n(of a hydrogen atom) which jumps to ground state, a photon is released .The wavelengthof photon is given by $λ^{-1}=R(1-1/n^2)$
According to law of conservation of momentum the momentum of atom and photon is conserved.
So $mv/n =h/λ +mv$ where v is speed of electron in ground state assuming photon is emitted in direction of motion of electron.
But the above equation is incorrect because λ is never negative.
Does it imply that atom is moving in direction opposite to direction in which photon is moving or photon can never be emitted in direction of motion of electron? Please explain in simple terms. I am a class 12 student.