๐Ÿงฎ Brain Teaser

The Derivative That Divides 2016

Find the smallest positive integer jj such that for every polynomial p(x)p(x) with integer coefficients and for every integer kk, the integer

p(j)(k)=djdxjp(x)โˆฃx=kp^{(j)}(k) = \frac{d^j}{dx^j} p(x) \bigg|_{x=k}

is divisible by 20162016.

derivativesinteger polynomialsfactorialsdivisibilityfalling factorials

Answer: The Derivative That Divides 2016

Key Idea / Intuition

The key is to think about what jj-th derivatives of integer-coefficient polynomials look like at integers. The natural basis for integer-valued polynomials is not {1,x,x2,โ€ฆ}\{1, x, x^2, \ldots\} but the binomial coefficients (xn)\binom{x}{n}. Taking jj derivatives of xnx^n produces n(nโˆ’1)โ‹ฏ(nโˆ’j+1)xnโˆ’jn(n-1)\cdots(n-j+1) x^{n-j}, and at integers this must be divisible by 20162016 for all valid nโ‰ฅjn \geq j. So we need j!j! to be divisible by 20162016, and we want the smallest such jj.

More precisely: the jj-th derivative of xnx^n at x=kx = k is n(nโˆ’1)โ‹ฏ(nโˆ’j+1)knโˆ’jn(n-1)\cdots(n-j+1)k^{n-j}, a product of jj consecutive integers times knโˆ’jk^{n-j}. The "worst case" is n=jn = j, giving j!j!. So we need 2016โˆฃj!2016 \mid j!.


Formal Proof / Solution

Step 1: Factor 2016.

2016=25โ‹…32โ‹…72016 = 2^5 \cdot 3^2 \cdot 7

Step 2: Reduce to divisibility of j!j!.

Every polynomial with integer coefficients can be written uniquely in the basis of falling factorials / binomial coefficients. It suffices to check the monomials p(x)=xnp(x) = x^n for nโ‰ฅjn \geq j (since lower-degree polynomials have zero jj-th derivative). The jj-th derivative of xnx^n is

djdxjxn=n(nโˆ’1)โ‹ฏ(nโˆ’j+1)โ€‰xnโˆ’j.\frac{d^j}{dx^j} x^n = n(n-1)\cdots(n-j+1)\, x^{n-j}.

At an integer kk, this equals n!(nโˆ’j)!โ‹…knโˆ’j\frac{n!}{(n-j)!} \cdot k^{n-j}.

The hardest case to make divisible by 20162016 is n=jn = j, k=1k = 1 (or any kk coprime to 20162016), giving:

p(j)(1)=j!โ‹…10=j!.p^{(j)}(1) = j! \cdot 1^0 = j!.

So we need 2016โˆฃj!2016 \mid j!.

Step 3: Conversely, if 2016โˆฃj!2016 \mid j!, does it always work?

For general nโ‰ฅjn \geq j and integer kk: n!(nโˆ’j)!โ‹…knโˆ’j=j!โ‹…(nj)โ‹…knโˆ’j.\frac{n!}{(n-j)!} \cdot k^{n-j} = j! \cdot \binom{n}{j} \cdot k^{n-j}.

If 2016โˆฃj!2016 \mid j!, then 20162016 divides j!โ‹…(nj)โ‹…knโˆ’jj! \cdot \binom{n}{j} \cdot k^{n-j} for all integers kk and all nโ‰ฅjn \geq j. So divisibility of j!j! by 20162016 is both necessary and sufficient.

Step 4: Find the smallest jj with 2016โˆฃj!2016 \mid j!.

We need 25โ‹…32โ‹…7โˆฃj!2^5 \cdot 3^2 \cdot 7 \mid j!.

  • The factor 77 requires jโ‰ฅ7j \geq 7 (since 7!=50407! = 5040 contains one factor of 7).
  • Check j=7j = 7: 7!=5040=24โ‹…32โ‹…5โ‹…77! = 5040 = 2^4 \cdot 3^2 \cdot 5 \cdot 7. This gives only 242^4, but we need 252^5. So 7โˆค7 \nmid our requirement โ€” wait, actually the issue is the power of 2: 7!7! contributes โŒŠ7/2โŒ‹+โŒŠ7/4โŒ‹=3+1=4\lfloor 7/2 \rfloor + \lfloor 7/4 \rfloor = 3 + 1 = 4 factors of 2. We need 5.
  • Check j=8j = 8: 8!=403208! = 40320. Powers of 2 in 8!8!: โŒŠ8/2โŒ‹+โŒŠ8/4โŒ‹+โŒŠ8/8โŒ‹=4+2+1=7โ‰ฅ5\lfloor 8/2\rfloor + \lfloor 8/4\rfloor + \lfloor 8/8\rfloor = 4 + 2 + 1 = 7 \geq 5. โœ“
    Powers of 3: โŒŠ8/3โŒ‹+โŒŠ8/9โŒ‹=2+0=2โ‰ฅ2\lfloor 8/3\rfloor + \lfloor 8/9\rfloor = 2 + 0 = 2 \geq 2. โœ“
    Powers of 7: โŒŠ8/7โŒ‹=1โ‰ฅ1\lfloor 8/7\rfloor = 1 \geq 1. โœ“

So 2016โˆฃ8!2016 \mid 8! but 2016โˆค7!2016 \nmid 7! (since 7!7! only has 242^4, missing one factor of 2).

Conclusion:

j=8\boxed{j = 8}

Source: Putnam 2016, Problem A1

Type: PutnamSource: Putnam 2016, Problem A1Edit on GitHub โ†—