For
light or anything with m=0, we can't use E = gamma*m*c^2 or p = gamma *
m * v since gamma is infinite (for v=c). Instead of thinking of energy
and momentum as being determined by velocity, we can think of momentum
as being the basic variable, and use the fact that energy is related to
this by E = |p| c (we get this by plugging m=0 into the general
relation E^2 = p^2 c^2 + m^2 c^4 and taking the square root).
You can also do this simple warm-up question. (solution provided on the second page)