#P4930. [PA 2013] Euler
[PA 2013] Euler
Problem Description
Given , find all such that .
Input Format
The first line contains an integer .
The next lines each contain an integer .
Output Format
Output a total of lines.
For each test case, output an integer indicating the number of valid values.
Then output a second line containing integers in increasing order. If is , output an empty line.
4
8
10
13
6
5
15 16 20 24 30
2
11 22
0
4
7 9 14 18
Hint
For of the testdata, , .
Translated by ChatGPT 5