Smallest N digit number which is a perfect fourth power | Function to return the smallest n - digit number which is a perfect fourth power ; Driver code
function cal ( n ) { var res = Math . pow ( Math . ceil ( ( Math . pow ( Math . pow ( 10 , ( n - 1 ) ) , 1 / 4 ) ) ) , 4 ) ; return parseInt ( res ) ; } var n = 1 ; document . write ( cal ( n ) ) ;