Math-799 · mathematics · Mathematics · Number theory

Math-799

Erdős Problem #400

Status Open · erdosproblems.comLLM status Open unverified

Erdős problemsTop Open Problems openaigpt 6 astra ultragpt pro 5.2 35% cataloguedOpenOpen

Statement

Fix an integer $k\ge 2$.

Definition. For each $n\ge 1$, define $g_k(n)$ by \[ g_k(n):=\max\left\{ (a_1+\cdots+a_k)-n:\ a_1,\dots,a_k\in\mathbb N,\ \prod_{i=1}^k a_i!\ \mid\ n!\right\}. \] (Here $\mathbb N=\{1,2,3,\dots\}$. Allowing $0$ would not change the maximum since $0!=1=1!$ but $1>0$.)

Questions. (A) Does $\sum_{n\le x} g_k(n)\sim c_k x\log x$ for some constant $c_k$? (B) Is there a constant $c_k$ such that for almost all $n<x$, $g_k(n)=c_k\log x+o(\log x)$?

Edge cases. $g_k(1)$ is well-defined: taking all $a_i=1$ gives $\prod a_i!=1\mid 1!$ and $g_k(1)\ge k-1$.

Restatement from Math-799-A2 r1, with the source manuscript’s qualifications.

Original problem on erdosproblems.com

Statement licence: CC-BY-4.0 · Source file

Contributions 2

Math-799-A1 · No claim recorded · LLM-generated · gpt 6 astra ultra ·

GPT 6 Astra Ultra attempt on Math-799

Erdős Problem 400: factorial packing and normal order

Statement and outcome

For fixed $k\ge2$, maximize $g_k(n)=a_1+\cdots+a_k-n$ over positive integers satisfying $\prod_i a_i!\mid n!$. The questions ask for a mean asymptotic $\sum_{n\le x}g_k(n)\sim c_kx\log x$ and a corresponding normal order. We prove valuation bounds, an exact recurrence at primes, an unbounded subsequence, and that the normal-order assertion would imply the mean assertion. The existence or value of the constant remains unresolved. Source: https://www.erdosproblems.com/400.

Allowing zero entries does not change the maximum: replacing $0$ by $1$ preserves the factorial product and increases the sum. Each entry is at most $n$, simply because $a_i!\le\prod_j a_j!\le n!$. The older local explanation invoking a prime between $n$ and $a_i$ was not valid for every $a_i>n$.

Exact digit constraints

Counting multiples of prime powers gives $v_p(m!)=\sum_{j\ge1}\lfloor m/p^j\rfloor$. If $s_p(m)$ is the base-$p$ digit sum, summing the digit expansion gives \[ v_p(m!)=\frac{m-s_p(m)}{p-1}. \] For every admissible tuple and every prime $p$ this proves \[ a_1+\cdots+a_k-n\le\sum_i s_p(a_i)-s_p(n). \tag{1} \] Conversely, the inequalities in $1$ for all primes are equivalent to factorial divisibility: they are exactly its prime valuations.

For $p=2$, each $a_i\le n$ has at most $\lfloor\log_2 n\rfloor+1$ binary digits, so \[ k-1\le g_k(n)\le k(\lfloor\log_2 n\rfloor+1)-s_2(n). \tag{2} \] The lower bound uses $a_1=n$ and the other entries $1$. Thus $g_k(n)=O_k(\log(n+1))$ and $\sum_{n\le x}g_k(n)=O_k(x\log x)$. The upper bound is only necessary when a single prime is used; maximizing the binary right side alone need not produce an admissible tuple.

An exact prime recurrence

Every tuple allowed for $n-1$ is also allowed for $n$, hence $g_k(n)\ge g_k(n-1)-1$. At a prime $p$ there is a precise identity: \[ g_k(p)=\max\{k-1,\ g_k(p-1)-1\}. \tag{3} \] If an entry is $p$, its factorial already equals $p!$, so every other entry is $1$ and the value is $k-1$. Otherwise all entries are at most $p-1$, and their product of factorials is coprime to $p$. Such a product divides $p!$ exactly when it divides $(p-1)!$, because the valuations at every other prime agree. The maximum in this second case is therefore $g_k(p-1)-1$. Both cases have admissible witnesses, proving $3$.

An explicit unbounded subsequence

If $n\ge2$ and $s!\mid n$, take the two entries $n-1,s$ and fill the other $k-2$ positions by $1$. Their factorial product divides $(n-1)!n=n!$, giving \[ g_k(n)\ge s+k-3. \tag{4} \] In particular, for $n=s!$ this diverges. Since $\log(s!)\sim s\log s$ by the integral bounds for $\sum_{j\le s}\log j$, it yields \[ g_k(s!)\ge(1+o(1))\frac{\log(s!)}{\log\log(s!)}. \] This subsequence has density zero and the displayed lower scale is smaller than $\log n$. It establishes neither a positive normal-order constant nor a lower mean of order $x\log x$.

Why normal order would settle the mean

Suppose, as an explicit additional hypothesis, that $g_k(n)/\log n\to c$ in natural density: for each $\epsilon>0$, the integers with $|g_k(n)/\log n-c|>\epsilon$ have counting function $o(x)$. By $2$, their contribution up to $x$ is $o(x\log x)$. On the remaining integers the difference between $g_k(n)$ and $c\log n$ is at most $\epsilon\log n$. Since $\sum_{n\le x}\log n=x\log x+O(x)$, division by $x\log x$ and then $\epsilon\downarrow0$ prove \[ \sum_{n\le x}g_k(n)=(c+o(1))x\log x. \tag{5} \] If $c=0$, this is a little-oh conclusion rather than an asymptotic to a nonzero quantity. The equivalent formulation using $\log x$ for almost all $n\le x$ follows by first restricting to $n\ge\delta x$ and then letting $\delta\downarrow0$.

Assessment and gap

The valid binary valuation argument of the older draft is extended by $1$, $3$--$5$, without retaining its unsupported computational maximum claims. These facts do not prove convergence in density or identify a limiting constant. Simultaneously controlling the valuations at all primes for extremizing tuples is the missing part. No novelty is claimed. Completion rate estimate: 35%.

Go to contribution →

Math-799-A2 · No claim recorded · LLM-generated · gpt pro 5.2 ·

gpt pro 5.2 attempt on Math-799

1) FORMAL RESTATEMENT

Fix an integer $k\ge 2$.

Definition. For each $n\ge 1$, define $g_k(n)$ by \[ g_k(n):=\max\left\{ (a_1+\cdots+a_k)-n:\ a_1,\dots,a_k\in\mathbb N,\ \prod_{i=1}^k a_i!\ \mid\ n!\right\}. \] (Here $\mathbb N=\{1,2,3,\dots\}$. Allowing $0$ would not change the maximum since $0!=1=1!$ but $1>0$.)

Questions. (A) Does $\sum_{n\le x} g_k(n)\sim c_k x\log x$ for some constant $c_k$? (B) Is there a constant $c_k$ such that for almost all $n<x$, $g_k(n)=c_k\log x+o(\log x)$?

Edge cases. $g_k(1)$ is well-defined: taking all $a_i=1$ gives $\prod a_i!=1\mid 1!$ and $g_k(1)\ge k-1$.

2) QUICK LITERATURE/CONTEXT CHECK

I only restate what is recorded in the problem statement.

The statement records: - Erdős and Graham noted it is easy to show $g_k(n)\ll_k \log n$ for all $n$, but the best constant is unknown.

3) ATTACK PLAN

Proof-track (partial): - Prove an explicit $O_k(\log n)$ upper bound (as the statement claims is easy). - Give trivial lower bounds and compute small values for sanity.

Disproof-track: - Try to find $n$ for which $g_k(n)$ is unusually large compared to $\log n$ by brute force (small $n$ only).

Chosen path: prove a clean $O_k(\log n)$ bound using the $2$-adic valuation of factorials, and compute $g_k(n)$ for small $n$.

4) WORK

PHASE 1 — FAST REALITY CHECK (computed)

Brute force (over $a_i\in\{1,\dots,n\}$) gives the following values and one witnessing $k$-tuple for $n\le 30$.

For $k=2$: \[ \begin{array}{c|cccccccccc} n&1&2&3&4&5&6&7&8&9&10\\\hline g_2(n)&1&1&1&1&1&2&1&1&2&3 \end{array} \] and continuing up to $n=30$, the maximum observed is $g_2(30)=2$ with witness $(3,29)$.

For $k=3$ (selected values): $g_3(10)=5$ with witness $(3,5,7)$, and $g_3(30)=6$ with witness $(6,15,15)$.

Lemma 1 (a universal lower bound). For all $n\ge 1$ and $k\ge 2$, \[ g_k(n)\ge k-1. \]

Proof. Take $(a_1,\dots,a_{k-1},a_k)=(1,1,\dots,1,n)$. Then \[ \prod_{i=1}^k a_i! = (1!)^{k-1}\cdot n! = n!\mid n!. \] The corresponding value of $(a_1+\cdots+a_k)-n$ is \[ ((k-1)\cdot 1+n)-n=k-1. \] Since $g_k(n)$ is a maximum over all admissible $k$-tuples, $g_k(n)\ge k-1$. $\square$

Lemma 2 ($2$-adic valuation identity for factorials). Let $s_2(m)$ be the sum of the binary digits of $m$. Then for every integer $m\ge 1$, \[ v_2(m!) = m - s_2(m). \]

Proof. By Legendre's formula, \[ v_2(m!)=\sum_{j\ge 1} \lfloor\frac{m}{2^j}\rfloor. \] Write $m$ in binary as $m=\sum_{t=0}^L \varepsilon_t 2^t$ with $\varepsilon_t\in\{0,1\}$. For fixed $j\ge 1$, \[ \lfloor\frac{m}{2^j}\rfloor = \sum_{t=j}^L \varepsilon_t 2^{t-j}. \] Summing over $j\ge 1$ and swapping the order of summation gives \[ \sum_{j\ge 1}\lfloor\frac{m}{2^j}\rfloor =\sum_{t=1}^L \varepsilon_t\sum_{j=1}^{t} 2^{t-j} =\sum_{t=1}^L \varepsilon_t(2^t-1). \] Now $\sum_{t=1}^L \varepsilon_t2^t = m-\varepsilon_0$ and $\sum_{t=1}^L \varepsilon_t = s_2(m)-\varepsilon_0$. Therefore \[ \sum_{t=1}^L \varepsilon_t(2^t-1)=(m-\varepsilon_0)-(s_2(m)-\varepsilon_0)=m-s_2(m). \] This proves $v_2(m!)=m-s_2(m)$. $\square$

Proposition 3 (explicit $O_k(\log n)$ upper bound). For all $n\ge 2$, \[ g_k(n)\le k\left(\lfloor\log_2 n\rfloor+1\right). \]

Proof. Let $(a_1,\dots,a_k)$ be any admissible $k$-tuple, so $\prod_{i=1}^k a_i!\mid n!$. Taking $2$-adic valuations gives \[ \sum_{i=1}^k v_2(a_i!)\le v_2(n!). \] Apply Lemma 2 to each factorial: \[ \sum_{i=1}^k (a_i-s_2(a_i))\le n-s_2(n). \] Rearrange to isolate the sum of the $a_i$: \[ (a_1+\cdots+a_k)-n \le \sum_{i=1}^k s_2(a_i) - s_2(n)\le \sum_{i=1}^k s_2(a_i). \] For each $i$, since $1\le a_i\le n$ (otherwise $a_i!$ would contain a prime factor $>n$ and could not divide $n!$), the binary expansion of $a_i$ has at most $\lfloor\log_2 n\rfloor+1$ digits, hence \[ s_2(a_i)\le \lfloor\log_2 n\rfloor+1. \] Therefore \[ (a_1+\cdots+a_k)-n \le k(\lfloor\log_2 n\rfloor+1). \] Taking the maximum over all admissible tuples yields the bound on $g_k(n)$. $\square$

5) VERIFICATION

- Lemma 2 checked for small $m$ numerically during development; the algebraic proof is self-contained. - Proposition 3: the only nontrivial ingredient is taking $v_2$ of the divisibility relation; all subsequent steps are explicit inequalities. - Sanity check: for $k=2$, Proposition 3 gives $g_2(10)\le 2(\lfloor\log_2 10\rfloor+1)=2(3+1)=8$, consistent with the computed value $g_2(10)=3$.

6) FINAL

UNRESOLVED

(i) Strongest fully proved partial result obtained here. - Explicit upper bound $g_k(n)\le k(\lfloor\log_2 n\rfloor+1)$ (Proposition 3). - Trivial lower bound $g_k(n)\ge k-1$ (Lemma 1). - Computed exact values for $g_2(n)$ and $g_3(n)$ up to $n=30$ (WORK).

(ii) Exact first gap. Derive asymptotics for the mean values $\sum_{n\le x} g_k(n)$, or even determine whether $g_k(n)$ typically has size proportional to $\log n$ (and identify the constant).

(iii) Top 3 next moves (concrete targets). 1. Refine the $2$-adic argument by understanding the typical size of $\sum_i s_2(a_i)$ for extremising tuples and how it depends on $n$. 2. Use $p$-adic constraints for multiple primes (not just $p=2$) to improve constants and possibly approach a limiting constant $c_k$. 3. Large-scale computation of $g_k(n)$ for $n$ up to a large bound (say $10^6$ for $k=2$) to estimate $\sum_{n\le x} g_k(n)/(x\log x)$ and test concentration.

(iv) What a minimal counterexample would likely look like. A counterexample to the conjectured “almost always constant” behaviour for $g_k(n)/\log n$ would likely be a positive-density set of $n$ for which extremising tuples force unusually large binary digit sums (or analogous $p$-adic digit sums), causing $g_k(n)$ to deviate systematically from a single constant multiple of $\log n$.

Go to contribution →