#P285. 练46.4 第N个智慧数
练46.4 第N个智慧数
Description
A positive integer is called a "smart number" if it can be expressed as the difference of squares of two positive integers. For example, equals , so is a smart number. In the sequence of natural numbers starting from , we number the "smart numbers" in ascending order as , , , ..., . Given a positive integer , output the -th "smart number".
Input Format
The input contains a single positive integer ().
Output Format
Output a single positive integer representing the -th "smart number".
Sample
37
Related
In following homework: