Quote:
Originally Posted by SUPER XERO
okkkk........ it goes like this....
f(f(f(f(k)))=1
since the sum is 1 ...... and k has least possible digits....
so,
f(f(f(k))= 10 {1+0=1}
noww...... we want the sum to be 10..... and with k having least possible digit so the expression can be 19 {1+9=10}
so....
f(f(k))=19
now...... we want the sum to be 19 so ...... {1+9+9=19}
so.....
f(k)=199
following the same method we have .........
22 9's and one 1 (22x9+1x1=199)
so , k =23 (22 9's and one 1)
i hope i m correct .................
|
dude i used the same method but c once we get 10 then no matter how many times u put it in the function loop the sum of digits will be 1.
for eg: u have f(k)=1 then u will have f(f(k))=1 and so on...
so the least possible number of digits wud be 3..
this is my reasoning.... i may be wrong