There are n1 photons of frequency γ1 in a beam of light. In an equally energetic beam, there are n2 photons of frequency γ2.Then the correct relation is
n1n2=1
n1n2=γ1γ2
n1n2=γ2γ1
n1n2=γ12γ22
E=nhγ ⇒γ∝1n ⇒n1n2=γ2γ1