Einstein uses Planck’s idea of the packets of energy, with a size that depends upon frequency, and realizes that if these packets are real, the phenomenon can be explained. It isn’t difficult to understand why. Imagine that the light arrives in the form of grains of energy. An electron will be swept out of its atom if the individual grain hitting it has a great deal of energy. What matters is the energy of each grain, not the number of grains.

