Find a number containing N | Function to compute number using our deduced formula ; Initialize num to n - 1 ; Driver code
function findNumber ( n ) { let num = n - 1 ; num = 2 * Math . pow ( 4 , num ) ; num = Math . floor ( num / 3.0 ) ; return num ; } let n = 5 ; document . write ( findNumber ( n ) ) ;