# Infinitely many odd n divide the sum of the first n cubes F_{3i}^3: an answer to Remark 1.13 of Mandal–Mohan, checked in Lean

iis:2611.00171 · by rotem-lean · https://isitsolved.com/journal/38968d1ec09d

**Abstract.** Mandal and Mohan (arXiv:2611.32519, Remark 1.13) asked whether infinitely many odd n divide F_3^3 + F_6^3 + ... + F_{3n}^3. They do. If gcd(n,10) = 1 and a multiple T of the Pisano period of n is even, is prime to 3 and divides n+1, then n divides the sum, because a full period of Fibonacci cubes sums to 0 mod n. Flynn-Connolly's congruence 4p | F_{2p}+1 for primes p = 17, 23 (mod 30), reproved here, shows that n = F_{2p} qualifies. Dirichlet's theorem then gives an infinite family. Every step is checked in Lean 4 with Mathlib.


**Theorem.** There are infinitely many odd $n$ with
$$n \;\Big|\; \sum_{i=1}^{n} F_{3i}^{3}.$$
In fact $n=F_{2p}$ works for every prime $p\equiv 17,23\pmod{30}$.

Mandal and Mohan (arXiv:2611.32519, v1, 24 Nov 2026) list the odd examples $39, 63, 69, 207, 279$. In Remark 1.13 they say they do not know whether infinitely many such odd $n$ exist. The whole argument is checked in Lean 4 with Mathlib (`FibCubes.infinite_odd_dvd_sum_cubes`, attached). It depends only on the axioms `propext`, `Classical.choice` and `Quot.sound`, and has no unproved hypotheses.

## A criterion

**Proposition.** Let $\gcd(n,10)=1$. Suppose $F_T\equiv0$ and $F_{T+1}\equiv1\pmod n$, where $T\ge2$ is even, $3\nmid T$ and $T\mid n+1$. Then $n\mid\sum_{i=1}^n F_{3i}^3$.

*Proof.* The sequence $F_j \bmod n$ has period $T$. Since $3(n+1)\equiv0\pmod T$, the term $i=n+1$ is $F_0^3=0$, so we may sum over $i=0,\dots,n$ instead. These $n+1$ indices split into blocks of $T$ consecutive values. Because $3\nmid T$, the map $i\mapsto 3i \bmod T$ permutes each block, so every block sum equals $\sum_{j=0}^{T-1}F_j^3$.

The identity
$$10\sum_{j=0}^{M+1}F_j^3=F_{3M+5}+6(-1)^MF_M+5$$
holds for all $M\ge0$. It follows from $F_{3k}=5F_k^3+3(-1)^kF_k$ (proved in Lean). Take $M=T-2$, which is even. Then $F_{3T-1}\equiv F_{-1}=1$ and $F_{T-2}\equiv F_{-2}=-1$, so
$$10\sum_{j=0}^{T-1}F_j^3\equiv 1-6+5=0 \pmod n.$$
Since $\gcd(n,10)=1$, each block sum is $\equiv 0$. $\square$

## Fibonacci numbers satisfy the criterion

Let $m$ be even with $3\nmid m$ and $2m\mid F_m+1$, and set $n=F_m$ and $T=2m$.

* $F_m\mid F_{2m}$.
* $F_{2m+1}=F_{m+1}^2+F_m^2\equiv F_{m+1}F_{m-1}\equiv1 \pmod{F_m}$, by Cassini for even $m$.
* $F_m$ is odd because $3\nmid m$.
* $5\nmid F_m$: otherwise $5\mid m$, and then $5\mid 2m\mid F_m+1$ as well, which is impossible.

## Flynn-Connolly's congruence

For a prime $p\equiv17,23\pmod{30}$, we have $4p\mid F_{2p}+1$. This congruence comes from Flynn-Connolly (arXiv:2504.09938), and Mandal–Mohan state it as Theorem 1.26. We reprove it in Lean as follows.

* **Modulo 4.** The Fibonacci numbers mod 4 have period 6, and $2p\equiv4\pmod 6$, so $F_{2p}\equiv F_4=3$.
* **Modulo $p$.** Work in $\mathbb{F}_p[\sqrt5]$. Quadratic reciprocity gives $(5/p)=(p/5)=-1$. By Euler's criterion, $\sqrt5^{\,p}=-\sqrt5$. Let $\varphi=(1+\sqrt5)/2$. Then $\varphi^p=1-\varphi$, and so $\varphi^{2p}=2-\varphi$. Combining this with $\varphi^{k+1}=F_{k+1}\varphi+F_k$ and comparing coefficients of $\sqrt5$ gives $F_{2p}\equiv-1$.

Dirichlet's theorem (Mathlib's `Nat.forall_exists_prime_gt_and_eq_mod`) gives infinitely many such primes. Since $F_{2p}\to\infty$, the family is infinite. $\blacksquare$

## Remarks

* For this family, the companion sums are never $\equiv 0$. The dropped term is $F_{-1}^3=1$ or $F_{-2}^3=-1$, so
  $$\sum_{i\le n}F_{3i-1}^3\equiv -1,\qquad \sum_{i\le n}F_{3i-2}^3\equiv 1,\qquad \sum_{i\le n}F_{3i-1}^2\equiv -1 \pmod n.$$
  This is consistent with the paper's Conjecture 1.9.
* Numerical checks: the condition holds for $F_{2p}$ for every qualifying prime $p<200$. A direct $O(n)$ summation confirms $n=F_{34}=5702887$ and $n=F_{46}=1836311903$. As a control, $F_{47}$ fails.
* **Prior art.** Flynn-Connolly treats only first powers, and his family is the starting point here. As of 28 Nov 2026 I found no result on the cube question.

**Disclosure.** This work was done by Rotem Ashkenazi with Claude (Anthropic). Claude found the argument and wrote the Lean proof under Rotem's direction. Source: https://github.com/rotem4997/lean-classics/blob/main/LeanClassics/FibCubes.lean

