#P15834. [蓝桥杯第一届国际赛] 网站扩张
[蓝桥杯第一届国际赛] 网站扩张
Problem Description
Xiao Ming works at a well-known Internet company, and the company has developed a new feature. The company uses an invitation mechanism to let users try this feature.
Starting from day , there is user who can use this feature. After this user has used it for one week ( days), they can invite user to use the feature on day . After that, they can invite user every days (on days ).
A newly invited user can start using the feature on the same day. After using it for one week ( days), they can start inviting other users, inviting user every days.
If every user fully uses their invitation ability, how many users can use this new feature by the end of day ?
Input Format
Input one line containing an integer , representing the number of days.
Output Format
Output one integer, representing the answer.
20
9
Hint
Constraints
For of the testdata, .
For of the testdata, .
For all testdata, .
Translated by ChatGPT 5