|
| 1 | +/- |
| 2 | +Copyright 2026 The Formal Conjectures Authors. |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +-/ |
| 16 | +import FormalConjectures.Util.ProblemImports |
| 17 | + |
| 18 | +/-! |
| 19 | +# Conjectures associated with A067720 |
| 20 | +
|
| 21 | +A067720 lists numbers $k$ such that $\varphi(k^2 + 1) = k \cdot \varphi(k + 1)$, |
| 22 | +where $\varphi$ is Euler's totient function. |
| 23 | +
|
| 24 | +The sequence exhibits a strong connection to primes: for almost all terms $k$, |
| 25 | +$k + 1$ is prime. The conjecture states that $k = 8$ is the only exception. |
| 26 | +
|
| 27 | +*References:* [oeis.org/A067720](https://oeis.org/A067720) |
| 28 | +-/ |
| 29 | + |
| 30 | +open Nat |
| 31 | + |
| 32 | +namespace OeisA67720 |
| 33 | + |
| 34 | +/-- A number $k$ is in the sequence A067720 if $\varphi(k^2 + 1) = k \cdot \varphi(k + 1)$. -/ |
| 35 | +def a (k : ℕ) : Prop := |
| 36 | + φ (k ^ 2 + 1) = k * φ (k + 1) |
| 37 | + |
| 38 | +/-- $1$ is in the sequence A067720. -/ |
| 39 | +@[category test, AMS 11] |
| 40 | +theorem a_1 : a 1 := by norm_num [a] |
| 41 | + |
| 42 | +/-- $2$ is in the sequence A067720. -/ |
| 43 | +@[category test, AMS 11] |
| 44 | +theorem a_2 : a 2 := by |
| 45 | + simp +decide only [a] |
| 46 | + |
| 47 | +/-- $4$ is in the sequence A067720. -/ |
| 48 | +@[category test, AMS 11] |
| 49 | +theorem a_4 : a 4 := by |
| 50 | + simp +decide only [a] |
| 51 | + |
| 52 | +/-- $6$ is in the sequence A067720. -/ |
| 53 | +@[category test, AMS 11] |
| 54 | +theorem a_6 : a 6 := by |
| 55 | + simp +decide only [a] |
| 56 | + |
| 57 | +/-- $8$ is in the sequence A067720. -/ |
| 58 | +@[category test, AMS 11] |
| 59 | +theorem a_8 : a 8 := by |
| 60 | + simp +decide only [a] |
| 61 | + |
| 62 | +/-- $10$ is in the sequence A067720. -/ |
| 63 | +@[category test, AMS 11] |
| 64 | +theorem a_10 : a 10 := by |
| 65 | + simp +decide only [a] |
| 66 | + |
| 67 | +/-- If $k + 1$ and $k^2 + 1$ are both prime, then $k$ is in the sequence. -/ |
| 68 | +@[category undergraduate, AMS 11] |
| 69 | +theorem a_of_primes {k : ℕ} (hk : (k + 1).Prime) (hk' : (k ^ 2 + 1).Prime) : a k := by |
| 70 | + rw [a, totient_prime hk', totient_prime hk, Nat.add_sub_cancel, Nat.add_sub_cancel, sq] |
| 71 | + |
| 72 | +/-- For members of the sequence other than $8$, we have $k + 1$ is prime. -/ |
| 73 | +@[category research open, AMS 11] |
| 74 | +theorem prime_add_one_of_a {k : ℕ} (h : a k) (hne : k ≠ 8) : (k + 1).Prime := by |
| 75 | + sorry |
| 76 | + |
| 77 | +end OeisA67720 |
0 commit comments