Problem B
Solution Pollution
Mathematics is facing a crisis. There are too many
solutions, and not enough problems! You’ve come up with a new
problem, but if it has too many solutions, it will simply
contribute to the solution pollution! To solve your dilemma,
you must find all of the solutions
For example, when
Input
The first line of input contains an integer
Output
Each test case corresponds with a single line of output. For
each test case
Sample Input 1 | Sample Output 1 |
---|---|
4 4 6 130 1000000000 |
4 6 16 21 130 3355 5161 8386 8515 11740 13546 1000000000 212890624787109376 787109375212890625 |