Coeficient = sumă × cmmdc; maximul = cel mai mare S_d × d, unde S_d e suma numerelor divizibile cu d.