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

Largest odd divisor of $a(n-1) + \textrm{prime}(n)$

$a(0)=0$; thereafter $a(n)$ = largest odd divisor of $a(n-1) + \textrm{prime}(n)$.

References:

namespace OeisA114216

The primary defining sequence a. $a(n)$ is the largest odd divisor of $a(n-1) + \textrm{prime}(n)$.

noncomputable def a (n : ) : := match n with | 0 => 0 | n' + 1 => let pN : := Nat.nth Nat.Prime n' let prevA : := a n' let sumVal : := prevA + pN let nu2 : := padicValNat 2 sumVal sumVal / (2 ^ nu2)@[category test, AMS 11] theorem a_0 : a 0 = 0 := a 0 = 0 All goals completed! 🐙(0 + 2) / 2 ^ padicValNat 2 (0 + 2) = 1 All goals completed! 🐙(1 + 3) / 2 ^ padicValNat 2 (1 + 3) = 1 All goals completed! 🐙(1 + 5) / 2 ^ padicValNat 2 (1 + 5) = 3 All goals completed! 🐙(3 + 7) / 2 ^ padicValNat 2 (3 + 7) = 5 All goals completed! 🐙(5 + 11) / 2 ^ padicValNat 2 (5 + 11) = 1 All goals completed! 🐙

Is $a(33900)$ the last term equal to $1$?

@[category research open, AMS 11] theorem conjecture : answer(sorry) n > 33900, a n 1 := True n > 33900, OeisA114216.a n 1 All goals completed! 🐙end OeisA114216