a : 4 = x rest 1 ==> a = 4x+1 |+3
a : 6 = y rest 3 ==> a = 6y+3 |+3
a : 8 = z rest 5 ==> a = 8z+ 5 |+3
a + 3 = 4(x+1)
a + 3 = 6(y+1)
a + 3 = 8(z+1)
a + 3 = c.m.m.m.c (4;6;8)
4 = 2^2
6 = 2×3
8 = 2^3
------------
c.m.m.m.c = 2^3 × 3 = 24
a + 3 = 24
a = 24 - 3 = 21 (numarul cautat)
21 : 4 = 5 rest 1
21 : 6 = 3 rest 3
21 : 8 = 2 rest 5