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

Numbers $n$ such that $\phi(n) = \phi(n + \phi(n))$

References:

namespace OeisA108569open scoped Nat

The predicate defining whether $k$ belongs to the sequence.

def A (k : ) : Prop := 0 < k φ k = φ (k + φ k)instance : DecidablePred A := DecidablePred A DecidablePred fun k 0 < k φ k = φ (k + φ k) All goals completed! 🐙

The primary defining sequence a. a n is the $(n+1)$-th positive integer $k$ such that $\phi(k) = \phi(k + \phi(k))$.

noncomputable def a (n : ) : := n.nth A

Term theorems verifying the first few values of the sequence against the official OEIS b-file

h1:A 1hcnt:Nat.count A 1 = 0a 0 = 1 h1:A 1hcnt:Nat.count A 1 = 0this:Nat.nth A (Nat.count A 1) = 1a 0 = 1 rwa [h1:A 1hcnt:Nat.count A 1 = 0this:Nat.nth A 0 = 1a 0 = 1h1:A 1hcnt:Nat.count A 1 = 0this:Nat.nth A 0 = 1a 0 = 1 at thish4:A 4hcnt:Nat.count A 4 = 1a 1 = 4 h4:A 4hcnt:Nat.count A 4 = 1this:Nat.nth A (Nat.count A 4) = 4a 1 = 4 rwa [h4:A 4hcnt:Nat.count A 4 = 1this:Nat.nth A 1 = 4a 1 = 4h4:A 4hcnt:Nat.count A 4 = 1this:Nat.nth A 1 = 4a 1 = 4 at thish8:A 8hcnt:Nat.count A 8 = 2a 2 = 8 h8:A 8hcnt:Nat.count A 8 = 2this:Nat.nth A (Nat.count A 8) = 8a 2 = 8 rwa [h8:A 8hcnt:Nat.count A 8 = 2this:Nat.nth A 2 = 8a 2 = 8h8:A 8hcnt:Nat.count A 8 = 2this:Nat.nth A 2 = 8a 2 = 8 at thish16:A 16hcnt:Nat.count A 16 = 3a 3 = 16 h16:A 16hcnt:Nat.count A 16 = 3this:Nat.nth A (Nat.count A 16) = 16a 3 = 16 rwa [h16:A 16hcnt:Nat.count A 16 = 3this:Nat.nth A 3 = 16a 3 = 16h16:A 16hcnt:Nat.count A 16 = 3this:Nat.nth A 3 = 16a 3 = 16 at thish32:A 32hcnt:Nat.count A 32 = 4a 4 = 32 h32:A 32hcnt:Nat.count A 32 = 4this:Nat.nth A (Nat.count A 32) = 32a 4 = 32 rwa [h32:A 32hcnt:Nat.count A 32 = 4this:Nat.nth A 4 = 32a 4 = 32h32:A 32hcnt:Nat.count A 32 = 4this:Nat.nth A 4 = 32a 4 = 32 at this

Conjecture: Except for the first term all terms are even.

@[category research open, AMS 11] theorem conjecture : n, 0 < n Even (a n) := (n : ), 0 < n Even (OeisA108569.a n) All goals completed! 🐙end OeisA108569