The sum of the digits of a three-digit number is 17 and the sum of the squares of its digits is 109. If we subtract 495 from that number, we shall get a number consisting of the same digits written in the reverse order. Find the number.
Open in App
Solution
Let three digit number is 100x+10y+z
According to question,
CONDITION 1: a sum of the digits of a three-digit number is 17
i.e x+y+z=17.................(i)
CONDITION 2: the sum of the squares of its digits is 109
i.e x2+y2+z2=109............(ii)
CONDITION 3: if we subtract 495 from that number, we shall get a number consisting of the same digits written in the reverse order
i.e 100x+10y+z−495=100z+10y+x
⇒99x−99z=495
⇒x−z=5
⇒x=z+5..............(iii)
From (i)and(iii)
(z+5)+y+z=17
⇒y=12−2z...........(iv)
From (i),(iii),and(iv)
(z+5)2+(12−2z)2+z2=109
z2+25+10z+144+4z2−48z+z2=109
⇒3z2−19z+30=0 which is a quadratic equation
on solving we get
z=103andz=3
z=103 is not possible as digit of any number can't be a fraction