Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions FormalConjectures/OEIS/63880.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/-
Copyright 2026 The Formal Conjectures Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
import FormalConjectures.Util.ProblemImports

open scoped ArithmeticFunction

/-!
# **Conjectures associated with A063880**

A063880 lists numbers $n$ such that $\sigma(n) = 2 \cdot \text{usigma}(n)$, where $\sigma(n)$ is the
sum of all divisors and $\text{usigma}(n)$ is the sum of unitary divisors.

Equivalently, these are numbers whose unitary and non-unitary divisors have equal sum.

The conjectures state that all members satisfy $n \equiv 108 \pmod{216}$, and that all
primitive terms (those whose proper divisors aren't in the sequence) are powerful numbers,
with $108$ being the only primitive term.

*References:* [oeis.org/A063880](https://oeis.org/A063880)
-/

namespace OeisA063880

/-- The set of unitary divisors of $n$: divisors $d$ such that $\gcd(d, n/d) = 1$. -/
def unitaryDivisors (n : ℕ) : Finset ℕ :=
{d ∈ n.divisors | d.Coprime (n / d)}

/-- The sum of unitary divisors of $n$, denoted $\text{usigma}(n)$. -/
def usigma (n : ℕ) : ℕ :=
∑ d ∈ unitaryDivisors n, d

/-- A number $n$ is in the sequence A063880 if $\sigma(n) = 2 \cdot \text{usigma}(n)$. -/
def a (n : ℕ) : Prop :=
0 < n ∧ σ 1 n = 2 * usigma n

/-- A term $n$ is primitive if no proper divisor of $n$ is in the sequence. -/
def isPrimitiveTerm (n : ℕ) : Prop :=
a n ∧ ∀ d, d ∣ n → d < n → ¬a d

/-- $108$ is in the sequence A063880. -/
@[category test, AMS 11]
theorem a_108 : a 108 := by
refine ⟨by norm_num, ?_⟩
native_decide

/-- $540$ is in the sequence A063880. -/
@[category test, AMS 11]
theorem a_540 : a 540 := by
refine ⟨by norm_num, ?_⟩
native_decide

/-- $756$ is in the sequence A063880. -/
@[category test, AMS 11]
theorem a_756 : a 756 := by
refine ⟨by norm_num, ?_⟩
native_decide

/-- $108$ is a primitive term. -/
@[category test, AMS 11]
theorem isPrimitiveTerm_108 : isPrimitiveTerm 108 := by
refine ⟨a_108, ?_⟩
intro d hd hlt ha
interval_cases d <;> simp_all [a] <;> revert ha <;> native_decide

/-- All members of the sequence satisfy $n \equiv 108 \pmod{216}$. -/
@[category research open, AMS 11]
theorem mod_216_of_a (n : ℕ) (h : a n) : n % 216 = 108 := by
sorry

/-- All primitive terms are powerful numbers. -/
@[category research open, AMS 11]
theorem powerful_of_isPrimitiveTerm (n : ℕ) (h : isPrimitiveTerm n) : n.Powerful := by
sorry

/-- $108$ is the only primitive term. -/
@[category research open, AMS 11]
theorem unique_primitive_108 (n : ℕ) (h : isPrimitiveTerm n) : n = 108 := by
sorry

/-- If $m$ is a primitive term and $s$ is squarefree with $\gcd(m, s) = 1$, then $m \cdot s$
is in the sequence. -/
@[category undergraduate, AMS 11]
theorem a_of_primitive_mul_squarefree (m s : ℕ) (hm : isPrimitiveTerm m)
(hs : Squarefree s) (hcoprime : m.Coprime s) : a (m * s) := by
sorry

/-- Non-primitive terms have the form $m \cdot s$ where $m$ is primitive and $s$ is
squarefree with $\gcd(m, s) = 1$. -/
@[category research open, AMS 11]
theorem exists_primitive_of_a (n : ℕ) (h : a n) :
∃ m s, isPrimitiveTerm m ∧ Squarefree s ∧ m.Coprime s ∧ n = m * s := by
sorry

end OeisA063880
Loading