-
Notifications
You must be signed in to change notification settings - Fork 210
feat(OEIS): A063880 #1877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rwst
wants to merge
4
commits into
google-deepmind:main
Choose a base branch
from
rwst:i1455
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+203
−0
Open
feat(OEIS): A063880 #1877
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
rwst marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| /-- $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 | ||
rwst marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| sorry | ||
|
|
||
| /-- All primitive terms are powerful numbers. -/ | ||
| @[category research open, AMS 11] | ||
| theorem powerful_of_isPrimitiveTerm (n : ℕ) (h : isPrimitiveTerm n) : n.Powerful := by | ||
| sorry | ||
rwst marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| /-- $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 | ||
rwst marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| end OeisA063880 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.