Arithmetic properties of Catalan numbers
TheoremParity of Catalan numbers#✓fully proved
MetaMathlibExt.catalan_odd_iff
For every natural number \(n\), the \(n\)th Catalan number \(C_n\) is odd if and only if \(n = 2^a - 1\) for some natural number \(a\).
Sources
Sources
- Alon Regev, "The Central Component of a Triangulation", Journal of Integer Sequences 16 (2013), Article 13.4.1, theorem
oddcats, lines 132–147 of https://cs.uwaterloo.ca/journals/JIS/VOL16/Regev/regev4.tex. This entry records the displayed theorem statement. Lines 85–88 defineC_nwith the standard indexing used by Mathlib'scatalan, so no index shift is required. The natural subtraction in2 ^ a - 1is safe because2 ^ ais positive. No parallel Catalan definition is introduced.
TheoremCatalan numbers other than \(1\) are not perfect powers#✓fully proved
MetaMathlibExt.catalan_not_perfect_power
For every natural number \(n \ge 2\), the \(n\)-th Catalan number \(C_n\) is not a perfect power: there are no natural numbers \(m\) and \(k\) with \(k \ge 2\) and \(C_n = m^k\).
The proof of Checcoli and D'Adderio checks small cases directly, and for \(n \ge 6\) uses a Ramanujan prime \(p\) with \(n + 2 \le p < 2n\), which divides \(C_n\) exactly once, so \(C_n = m^k\) with \(k \ge 2\) is impossible.
theorem catalan_not_perfect_power
(n : ℕ) (hn : 2 ≤ n) :
¬ ∃ m k : ℕ, 2 ≤ k ∧ catalan n = m ^ k
Sources
Sources
- Nathaniel Benjamin, Grant Fickes, Eugene Fiorini, Edgar Jaramillo Rodriguez, Eric Jovinelly, and Tony W. H. Wong, "Primes and Perfect Powers in the Catalan Triangle," Journal of Integer Sequences 22 (2019), Article 19.7.6, Theorem [Checcoli–D'Adderio], lines 148–150, https://cs.uwaterloo.ca/journals/JIS/VOL22/Fiorini/fiorini3.tex
2 fully proved
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.