The maximum number of arrangements determining the corresponding occupation number n i is obtained by maximizing the entropy, or equivalently, setting d ( ln ⁡ ⁡ W BE ) = 0 and taking the subsidiary conditions N = ∑ ∑ n i , E = ∑ ∑ i n i ε ε i into account (as Lagrange multipliers). The result for n i ≫ ≫ 1 , g i ≫ ≫ 1 , n i / g i = O ( 1 ) is the Bose–Einstein distribution.