a : 3 = x rest 1 =>a=3x+1 |+2=>a+2=3(x+1)
a : 4 = y rest 2 =>a=4y+2 |+2=>a+2=4(y+1)
a : 5 = z rest 3 =>a=5z+3 |+2 =>a+2=5(z+1)
a : 6 =u rest 4 =>a=6u+4 |+2 =>a+2=6(u+1)
a + 2 = 3 × 4 × 5 =60
a = 60 - 2
a = 58 (numarul cautat)
Verificare:
58 : 3 = 19 rest 1
58 : 4 = 14 rest 2
58 : 5 = 11 rest 3
58 : 6 = 9 rest 4