Id: formal-conjectures/OEIS__102371 Url: https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/OEIS/102371.lean Repo: https://github.com/google-deepmind/formal-conjectures Score: 0 Title: OEIS A102371 Domain: math.NT Source: formal-conjectures Problem: number=A102371 status=solved collection=oeis Reviews: 0 Subject: math.NT Category: research Comments: 0 Disputed: false Division: math Mentions: 0 Discussed: 0 Formalized: true Formalizations: https://github.com/KitaKen1/oeis-a102371/blob/d80fba9/lean/OeisA102371FC.lean#L490-L497 Page: https://delphi.science/r/formal-conjectures/OEIS__102371 The primary defining sequence a. $a(n)$ is defined by the recurrence relation $a(1)=1$, and for $n>1$, $a(n) = a(n-1) \operatorname{XOR} (a(n-1) + n)$, where $\operatorname{XOR}$ is the bitwise exclusive-or operator (^^^). Do we have $a(n) = 2^n - 1 - \operatorname{A105033}(n-1)$ for $n \ge 1$? Note: The OEIS comment suggests $n-1$ which means this applies at least for $n \ge 1$, as we assume $\operatorname{A105033}(\mathbb{N})$ is defined on $\mathbb{N}$. We include the case $n=1$ which relies on $A105033(0)$, which is 0.