Let \( p \) be a prime number. Let \( S_p \) be the set of all positive integers \( n \) satisfying
x^n – 1 = (x^p – x + 1) f(x) + p g(x)
for some polynomials \( f \) and \( g \) with integer coefficients. Find all \( p \) for which \( p^p -1 \) is the minimum of \( S_p \).
The best solution was submitted by 서기원, 09학번. Congratulations!
Other solutions were submitted by 라준현(08학번, +3), 어수강(서울대, +3). Thank you for your participation.