/- 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 FormalConjecturesUtil

Smallest $x$ such that $\sigma(x) \bmod x = n$

The sequence $a(n)$ is the smallest positive integer $x$ such that $\sigma_1(x) \bmod x = n$, or $0$ if no such $x$ exists.

References:

namespace OeisA76495open ArithmeticFunctionopen Classical in

Smallest positive integer $x$ such that $\sigma_1(x) \bmod x = n$, or $0$ if no such $x$ exists.

noncomputable def a (n : ) : := if h : x, 0 < x (sigma 1 x : ) % x = n then Nat.find h else 0

Value of the sequence a at 1.

h: x, 0 < x (sigma 1) x % x = 1(0 < 2 (sigma 1) 2 % 2 = 1) n < 2, ¬(0 < n (sigma 1) n % n = 1) All goals completed! 🐙 h:¬ x, 0 < x (sigma 1) x % x = 1False exact (h 2, h:¬ x, 0 < x (sigma 1) x % x = 10 < 2 (sigma 1) 2 % 2 = 1 All goals completed! 🐙).elim

Value of the sequence a at 2.

h: x, 0 < x (sigma 1) x % x = 2(0 < 20 (sigma 1) 20 % 20 = 2) n < 20, ¬(0 < n (sigma 1) n % n = 2) All goals completed! 🐙 h:¬ x, 0 < x (sigma 1) x % x = 2False exact (h 20, h:¬ x, 0 < x (sigma 1) x % x = 20 < 20 (sigma 1) 20 % 20 = 2 All goals completed! 🐙).elim

Value of the sequence a at 3.

h: x, 0 < x (sigma 1) x % x = 3(0 < 4 (sigma 1) 4 % 4 = 3) n < 4, ¬(0 < n (sigma 1) n % n = 3) All goals completed! 🐙 h:¬ x, 0 < x (sigma 1) x % x = 3False exact (h 4, h:¬ x, 0 < x (sigma 1) x % x = 30 < 4 (sigma 1) 4 % 4 = 3 All goals completed! 🐙).elim

Value of the sequence a at 4.

h: x, 0 < x (sigma 1) x % x = 4(0 < 9 (sigma 1) 9 % 9 = 4) n < 9, ¬(0 < n (sigma 1) n % n = 4) All goals completed! 🐙 h:¬ x, 0 < x (sigma 1) x % x = 4False exact (h 9, h:¬ x, 0 < x (sigma 1) x % x = 40 < 9 (sigma 1) 9 % 9 = 4 All goals completed! 🐙).elim

Value of the sequence a at 6.

h: x, 0 < x (sigma 1) x % x = 6(0 < 25 (sigma 1) 25 % 25 = 6) n < 25, ¬(0 < n (sigma 1) n % n = 6) All goals completed! 🐙 h:¬ x, 0 < x (sigma 1) x % x = 6False exact (h 25, h:¬ x, 0 < x (sigma 1) x % x = 60 < 25 (sigma 1) 25 % 25 = 6 All goals completed! 🐙).elim

At present, the 0 entry for $n = 5$ is only a conjecture. That is, it is conjectured that there is no positive integer $x$ such that $\sigma_1(x) \bmod x = 5$.

@[category research open, AMS 11] theorem conjecture : a 5 = 0 := a 5 = 0 All goals completed! 🐙end OeisA76495