Problem Description
Given an integer A find the Ath number whose binary representation is a palindrome.
NOTE:
1 <= A <= 2104
First and only argument is an integer A.
Return an integer denoting the Ath number whose binary representation is a palindrome.
Input 1:
A = 1
Input 1:
A = 9
Output 1:
1
Output 2:
27
Explanation 1:
1st Number whose binary representation is palindrome is 1
Explanation 2
9th Number whose binary representation is palindrome is 27 (11011)
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.