#L16846. [GKS 2021 #C] Alien Generator
[GKS 2021 #C] Alien Generator
Problem Description
题目描述
Astronauts have landed on a new planet, Kickstartos. They have discovered a machine on the planet: a generator that creates gold bars. The generator works as follows. On the first day, an astronaut inputs a positive integer into the generator. The generator will produce gold bars that day. The next day, it will produce , the following day, , and so on. Formally, on day , the generator will produce gold bars.
However, the astronauts also know that the generator will stop producing gold bars after it has produced a total of gold bars. They are curious about how many different positive integers could have been input into the generator.
Given , find the number of different positive integers such that the generator will produce exactly gold bars before stopping.
Limits
.
.
输入格式
The first line of the input gives the number of test cases, . lines follow.
Each line contains a single integer , representing the maximum number of gold bars the generator can generate.
输出格式
For each test case, output one line containing Case #: followed by , where is the test case number (starting from ) and is the number of possible values of on day that would eventually produce exactly gold bars.
样例
样例 1
提示
For Sample Case #, there are possible values of (, ) that would eventually produce exactly gold bars. For , we will have gold bars after days, and for , we will have gold bars after just day.
For Sample Case #, there are possible values of (, , , ) that would eventually produce exactly gold bars.
2
10
125
Case #1: 2
Case #2: 4