#P1590. 失踪的7
失踪的7
Description
The ancient Pascal people also used Arabic numerals to count, but they disliked using because they considered an unlucky number. Therefore, Pascal number actually represents in the natural numbers, and represents . Please compute how many Pascal numbers are contained within the range of positive integers up to .
Input Format
The first line contains a positive integer . Then follow lines, each containing a positive integer , and it is guaranteed that the input is a Pascal number.
Output Format
For each positive integer , output the number of Pascal numbers not exceeding .
2
10
20
9
18
Hint
For all testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号