Divisor Tests and a Square Factor in (n-1)^n+n
For F(n) = (n − 1)^(n) + n, every divisor d of 2n − 1 divides F(n) precisely when (−2)^(n − 1) ≡ 1 (mod d). This gives the exact residue-class test when 2n − 1 is prime and a counterexample to the proposed converse at n = 281. A separate binomial argument proves the square-divisibility observation 3(3k² + 3k + 1)² ∣ F(3k + 2) for every k ≥ 0. The note proves these statements completely, credits the observations in the original question, and isolates the residual cases in the still-unresolved general compositeness question. Formal scope. The archived Lean source covers the exact divisor criterion, prime-case criterion, composite-modulus counterexample and square factor. The final main endpoint retains residual hypotheses H1 and H2. Neither the manuscript nor this release settles the unrestricted compositeness question. No new Lean kernel build is claimed for this release. Rights. CC BY 4.0 applies to the original manuscript and author-owned exposition. Accompanying source and third-party material retain their own terms, as recorded in RIGHTS_AND_NOTICES.md in the source archive.
Authors
- Venkateshwar Reddy Jambula (ORCID: https://orcid.org/0009-0007-6740-2150)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24729102
- Primary Topic
- Analytic Number Theory Research
- Type
- preprint