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

IMC / 2012 / Problems / Day 2, P8

IMC 2012 · Day 2 · P8

hard

Is the set of positive integers nn such that n!+1n! + 1 divides (2012n)!(2012n)! finite or infinite?

(Proposed by Fedor Petrov, St. Petersburg State University)

Solution 1 of 2 (official)

Consider a positive integer nn with n!+1(2012n)!n! + 1 \mid (2012n)!. It is well-known that for arbitrary nonnegative integers a1,,aka_1, \dots, a_k, the number (a1++ak)!(a_1 + \dots + a_k)! is divisible by a1!ak!a_1! \cdot \dots \cdot a_k!. (The number of sequences consisting of a1a_1 digits 11, …, aka_k digits kk, is (a1++ak)!a1!ak!\frac{(a_1 + \dots + a_k)!}{a_1! \cdot \dots \cdot a_k!}.) In particular, (n!)2012(n!)^{2012} divides (2012n)!(2012n)!.

Since n!+1n! + 1 is co-prime with (n!)2012(n!)^{2012}, their product (n!+1)(n!)2012(n! + 1)(n!)^{2012} also divides (2012n)!(2012n)!, and therefore (n!+1)(n!)2012(2012n)!.(n! + 1) \cdot (n!)^{2012} \le (2012n)!. By the known inequalities (n+1e)n<n!nn\left( \frac{n+1}{e} \right)^n < n! \le n^n, we get (ne)2013n<(n!)2013<(n!+1)(n!)2012(2012n)!<(2012n)2012n\left( \frac{n}{e} \right)^{2013n} < (n!)^{2013} < (n! + 1) \cdot (n!)^{2012} \le (2012n)! < (2012n)^{2012n} n<20122012e2013.n < 2012^{2012} e^{2013}. Therefore, there are only finitely many such integers nn.

Remark. Instead of the estimate (n+1e)n<n!\left( \frac{n+1}{e} \right)^n < n!, we may apply the Multinomial theorem: (x1++x)N=k1++k=NN!k1!k!x1k1xk.(x_1 + \dots + x_\ell)^N = \sum_{k_1 + \dots + k_\ell = N} \frac{N!}{k_1! \cdot \dots \cdot k_\ell!} x_1^{k_1} \dots x_\ell^{k_\ell}. Applying this to N=2012nN = 2012n, =2012\ell = 2012 and x1==x=1x_1 = \dots = x_\ell = 1, (2012n)!(n!)2012<(1+1++12012)2012n=20122012n,\frac{(2012n)!}{(n!)^{2012}} < (\underbrace{1 + 1 + \dots + 1}_{2012})^{2012n} = 2012^{2012n}, n!<n!+1(2012n)!(n!)2012<20122012n.n! < n! + 1 \le \frac{(2012n)!}{(n!)^{2012}} < 2012^{2012n}. On the right-hand side we have a geometric progression which increases slower than the factorial on the left-hand side, so this is true only for finitely many nn.

Solution 2 of 2 (official)

Assume that n>2012n > 2012 is an integer with n!+1(2012n)!n! + 1 \mid (2012n)!. Notice that all prime divisors of n!+1n! + 1 are greater than nn, and all prime divisors of (2012n)!(2012n)! are smaller than 2012n2012n.

Consider a prime pp with n<p<2012nn < p < 2012n. Among 1,2,,2012n1, 2, \dots, 2012n there are 2012np<2012\left\lfloor \frac{2012n}{p} \right\rfloor < 2012 numbers divisible by pp; by p2>n2>2012np^2 > n^2 > 2012n, none of them is divisible by p2p^2. Therefore, the exponent of pp in the prime factorization of (2012n)!(2012n)! is at most 2011. Hence, n!+1=gcd(n!+1,(2012n)!)<n<p<2012pp2011.n! + 1 = \gcd \bigl( n! + 1, (2012n)! \bigr) < \prod_{n < p < 2012p} p^{2011}. Applying the inequality pXp<4X\prod\limits_{p \le X} p < 4^X, n!<n<p<2012pp2011<(p<2012np)2011<(42012n)2011=(420122011)n.(2)\tag{2} n! < \prod_{n < p < 2012p} p^{2011} < \left( \prod_{p < 2012n} p \right)^{2011} < \bigl( 4^{2012n} \bigr)^{2011} = \bigl( 4^{2012 \cdot 2011} \bigr)^n. Again, we have a factorial on the left-and side and a geometric progression on the right-hand side.

How the field did

contestants scored
313
average (of 10)
2.44
solved (≥ 80%)
21.7%
near-0 (≤ 10%)
71.2%
discrimination
0.55

Score distribution (field cohort)

Computed on contestants with a meaningful total (field cohort); discrimination is the corrected item–total correlation.

Similar problems

IMC 2022 · Day 2 · P6hardavg 3.1/10 · solved 21% · near-0 55% · disc 0.53
IMC 2025 · Day 1 · P4hardavg 2.9/10 · solved 23% · near-0 62% · disc 0.53
IMC 2014 · Day 1 · P4hardavg 2.7/10 · solved 25% · near-0 63% · disc 0.45
IMC 2017 · Day 1 · P3hardavg 3.0/10 · solved 25% · near-0 57% · disc 0.58