there is a 5 - digit number . the fifth digit is one fourth of the third digit and one half of the fourth digit . third digit is one half of the first digit . second digit is 5 more than the fifth digit . what is that 5 - digit number ?
we can prove it as follows suppose number is pqrst , now t = ( 1 / 4 ) r = ( 1 / 2 ) s . . . . . . ( 1 ) , r = ( 1 / 2 ) p . . . . . ( 2 ) , q = t + 5 . . . . ( 3 ) now from ( 1 ) 4 t = r = 2 s = k ( suppose ) . . . . ( 4 ) from ( 2 ) 2 r = p . . . ( 5 ) now ( 4 ) * 2 then we get 8 t = 2 r = 4 s = k ( again some integer ) . . . . ( 6 ) from ( 5 ) and ( 6 ) 8 t = 2 r = 4 s = p = k . . . . . . . . . ( 7 ) now we have to choose the value of k 1 ) if choose k = 0 then it is worthless number will be 00000 ( not a answer ) 2 ) for k = 1 to 7 and for k = 9 digits will be in fractions 3 ) for k = 8 we get p = 8 , s = 2 , r = 4 , t = 1 and q = 6 and number is pqrst = 86421 answer : a
add(add(add(add(multiply(multiply(const_4, const_2), multiply(const_1000, const_10)), multiply(5, const_1000)), multiply(const_4, const_100)), multiply(const_2, const_10)), const_1)