Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 2011 / Problems / Day 1, P3

IMC 2011 · Day 1 · P3

Let pp be a prime number. Call a positive integer nn interesting if xn1=(xpx+1)f(x)+pg(x)x^n - 1 = (x^p - x + 1) f(x) + p g(x) for some polynomials ff and gg with integer coefficients.

a) Prove that the number pp1p^p - 1 is interesting.

b) For which pp is pp1p^p - 1 the minimal interesting number?

(Eugene Goryachko and Fedor Petrov, St. Petersburg)

Solution (official)

(a) Let's reformulate the property of being interesting: nn is interesting if xn1x^n - 1 is divisible by xpx+1x^p - x + 1 in the ring of polynomials over Fp\mathbb{F}_p (the field of residues modulo pp). All further congruences are modulo xpx+1x^p - x + 1 in this ring. We have xpx1x^p \equiv x - 1, then xp2=(xp)p(x1)pxp1x2x^{p^2} = (x^p)^p \equiv (x-1)^p \equiv x^p - 1 \equiv x - 2, xp3=(xp2)p(x2)pxp2px2p1x3x^{p^3} = (x^{p^2})^p \equiv (x-2)^p \equiv x^p - 2^p \equiv x - 2^p - 1 \equiv x - 3 and so on by Fermat's little theorem, finally xppxpx,x^{p^p} \equiv x - p \equiv x, x(xpp11)0.x \left( x^{p^p - 1} - 1 \right) \equiv 0. Since the polynomials xpx+1x^p - x + 1 and xx are coprime, this implies xpp110x^{p^p - 1} - 1 \equiv 0.

(b) We write x1+p+p2++pp1=xxpxp2xpp1x(x1)(x2)(x(p1))=xpx1,x^{1 + p + p^2 + \dots + p^{p-1}} = x \cdot x^p \cdot x^{p^2} \cdot \dots \cdot x^{p^{p-1}} \equiv x (x-1)(x-2) \dots (x - (p-1)) = x^p - x \equiv -1, hence x2(1+p+p2++pp1)1x^{2(1 + p + p^2 + \dots + p^{p-1})} \equiv 1 and a=2(1+p+p2++pp1)a = 2 (1 + p + p^2 + \dots + p^{p-1}) is an interesting number.

If p>3p > 3, then a=2p1(pp1)<pp1a = \frac{2}{p-1} (p^p - 1) < p^p - 1, so we have an interesting number less than pp1p^p - 1. On the other hand, we show that p=2p = 2 and p=3p = 3 do satisfy the condition. First notice that by gcd(xm1,xk1)=xgcd(m,k)1\gcd(x^m - 1, x^k - 1) = x^{\gcd(m,k)} - 1, for every fixed pp the greatest common divisors of interesting numbers is also an interesting number. Therefore the minimal interesting number divides all interesting numbers. In particular, the minimal interesting number is a divisor of pp1p^p - 1.

For p=2p = 2 we have pp1=3p^p - 1 = 3, so the minimal interesting number is 1 or 3. But x2x+1x^2 - x + 1 does not divide x1x - 1, so 1 is not interesting. Then the minimal interesting number is 3.

For p=3p = 3 we have pp1=26p^p - 1 = 26 whose divisors are 1,2,13,261, 2, 13, 26. The numbers 1 and 2 are too small and x131+1x^{13} \equiv -1 \ne +1 as shown above, so none of 1, 2 and 13 is interesting. So 26 is the minimal interesting number.

Hence, pp1p^p - 1 is the minimal interesting number if and only if p=2p = 2 or p=3p = 3.

Similar problems

IMC 2001 · Day 1 · P4killeravg 0.3/10 · solved 2% · near-0 95% · disc 0.32
IMC 2006 · Day 2 · P11mediumavg 3.8/10 · solved 35% · near-0 55% · disc 0.53
IMC 2007 · Day 1 · P1easyavg 9.7/10 · solved 97% · near-0 0% · disc 0.16