Moving the band gap changes which photon rows are accepted. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.

highlighted = computed this step

Lower gap accepts and leaves excess

The photon stays at 6 joules. Moving the band gap to 4 joules gives accepted bit 1 and excess 2 joules.

E=hf=23=6 J6 J > Eg=4 Jaccepted=1\begin{array}{c}E=hf=2\cdot 3=6\ \mathrm{J}\\6\ \mathrm{J}\ >\ E_g=4\ \mathrm{J}\\\mathrm{accepted}=1\end{array}
Gap row 4 JThe same photon is checked against a moved gap.h=2 J/Hzf=3 HzE=6 JE_g=4 Jaccepted=1excess=2 J

Matching gap is the equality boundary

The photon stays at 6 joules. Moving the band gap to 6 joules gives accepted bit 1 and excess 0 joules.

E=hf=23=6 J6 J = Eg=6 Jaccepted=1\begin{array}{c}E=hf=2\cdot 3=6\ \mathrm{J}\\6\ \mathrm{J}\ =\ E_g=6\ \mathrm{J}\\\mathrm{accepted}=1\end{array}
Gap row 6 JThe same photon is checked against a moved gap.h=2 J/Hzf=3 HzE=6 JE_g=6 Jaccepted=1excess=0 J

Higher gap rejects the same photon

The photon stays at 6 joules. Moving the band gap to 8 joules gives accepted bit 0 and excess 0 joules.

E=hf=23=6 J6 J < Eg=8 Jaccepted=0\begin{array}{c}E=hf=2\cdot 3=6\ \mathrm{J}\\6\ \mathrm{J}\ <\ E_g=8\ \mathrm{J}\\\mathrm{accepted}=0\end{array}
Gap row 8 JThe same photon is checked against a moved gap.h=2 J/Hzf=3 HzE=6 JE_g=8 Jaccepted=0excess=0 J