We determine all measurable functions I,G,L:[0,1]→ℝ satisfying the functional equation ∑i=1n∑j=1mI(pi,qj)=∑i=1n∑j=1mG(pi)I(qj)+∑i=1n∑j=1mL(qj)I(pi) for P∈Γn, Q∈Γm and for a fixed pair (n,m), n≥3, m≥3, where G(0)=L(0)=0 and G(1)=L(1)=1. This functional equation has interesting applications in information theory.