A366561: Triangle read by rows: T(n,k) = Sum{y=1..n} Sum{x=1..n} [GCD(f(x,y), n) = k], where f(x,y) = x^2 - y^2.
Statement
Conjecture 1: T(n,n) = A062803(n). · Conjecture 2: T(n,1) = A082953(n). · Conjectures from Ridouane Oudra, Jun 17 2025: T(n,k) = 0 iff k not divide n. T(n,k) = phi(n/k)*Sum{d|k} (k/d)*phi(d*n/k), for n odd and k|n. T(n,k) = 2*(-1)^k*phi(n/k)*Sum{d|k} (-1)^(k/d)*(k/d)*phi(d*n/k), for n even and k|n. T(n,k) = gcd(n,2)*(-1)^k*phi(n/k)*Sum{d|k} (-1)^(k/d)*(k/d)*phi(d*n/k), for all integers n and k|n. More generally, for all integers n, k: T(n,k) = gcd(n,2)*(-1)^k*A054523(n,k)*Sum{d|k} (-1)^(k/d)*(k/d)*A054523(d*n,k).
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/oeis-a366561.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/oeis-a366561.lean
import Mathlib
/-!
# A366561: Triangle read by rows: T(n,k) = Sum{y=1..n} Sum{x=1..n} [GCD(f(x,y), n) = k], where f(x,y) = x^2 - y^2.
Source: https://oeis.org/A366561
Credit: @<your GitHub handle>
State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/
namespace OMA.S_oeis_a366561
-- definitions the statement needs (no sorry, no axiom)
theorem main : sorry := by
sorry
end OMA.S_oeis_a366561