Goi so can tim la abcde (a,b,c,d,e thuoc N, a#0)
Theo bai ra ta co
edcba=4*abcde
<=>10000e+1000d+100c
+10b+a=40000a+4000b
+400c+40d+4e
<=> 13333a+1330b+100c
=320d+3332e
Ta co VP=<320*9+3332*9 =32868
=> 13333a=<32868
Do do a=1 h0ac a=2
De thay a chan nen a=2
=>26666+1330b+100c
=320d+3222e
VT co tan cug la 6 nen vp cug co tan cug la 6.
Vi vay 3222e co tan cung la 6. Suy ra e=2 h0ac e=8
Neu e=2 thi de thay k tim dc d tman(loai)
Neu e=8 thi
10+1330b+100c=320d
<=>1+133b+10c=32d