Problem

Source: 2022 IGMO Revenge #1 by International Gamma Mathematical Olympiad Revengers

Tags: Perfect Powers, Perfect power, number theory



(a) Let $p$ be a fixed prime number. Find all positive integers $n \ge 2$ such that there exist $n + 1$ (not necessarily positive) integers satisfying the sum of any $n$ of them is a power of $p$. (b) Let $p$ be a fixed prime number. Find all positive integers $n \ge 2$ such that there exist $n + 1$ positive integers satisfying the sum of any $n$ of them is a power of $p$. Note: For both parts, the $n + 1$ numbers do not have to be distinct. (by JasonM#8428)