If the momentum of a photon is p, then its frequency is Where m is the rest mass of the photon
phc
pch
mhc
mch
p=Ec=hvc⇒v=pch
The energy of a photon is E=hv and the momentum of photon p=hλ, then the velocity of photon will be