Given a natural number , being the sum of its divisors not counting itself. A number is called popiropis if . A number is called -popiropis if for an integer .
For instance, the number 133 is popiropis, because , and . Besides, 132 is 3-popiropis, because .
Your task is to write a program that, for each natural number given, print if it is popiropis, if is -popiropis (and which is the value of ), or if it is nothing.
The input is a sequence of natural numbers .
Your program must print a line for each , indicating which class is: popiropis, -popiropis, or nothing.
Your program must implement and use the function
int sum_divisors(int n);
that, given a natural number |n| different than 0, returns the sum of its divisors (not counting itself).
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:29:25.300Z
© Jutge.org, 2006–2026.
https://jutge.org