x:25=c1 rest 24
x=c1 * 25 +24
x=M25+25-1
x=M25-1
x:20=c2 rest 19
x=c2 * 20 +19
x=M20+20-1
x=M20-1
x:12=c3 rest 11
x=c3 * 12 +11
x=M12+12-1
x=M12-1
x=[M25;M20;M12] * c-1
c=1 ---> deoarece se cere cel mai mic numar natural
25=5²
20=2² * 5
12=2² * 3
x= 5² * 2² * 3 * 1 - 1
x=25*4*3 - 1
x=100*3 -1
x=300-1
x=299