abc+bca+cab=555.
abc=100a + 10b+ c
bca= 100b+10c+a
cab=100c+10a+b
Deci:
100a + 10b+ c+100b+10c+a+100c+10a+b= 555
111a+111b+111c= 555
111(a+b+c)=555
a+b+c=555:111
a+b+c=5.
Cazul 1: a=1,b=0,c=4 Deci 104. sau 140.
Cazul 2: a=3,b=2,c=0. Deci 320 sau 302 sau 230 sau 203.
Cazul 3: a=5,b=0,c=0. Deci 500.