Method to convert any number to binary equivalent
while ( n > 0 ) : NEW_LINE INDENT ans += ( a * ( n % 9 ) ) NEW_LINE a *= 10 NEW_LINE n //= 9 NEW_LINE DEDENT return ans NEW_LINE def getNthnumber ( base9 , K ) : NEW_LINE ans = 0 NEW_LINE