\documentclass[12pt]{amsart} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} %\usepackage{fullpage} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{comment} \usepackage{amssymb} \usepackage{float} \usepackage{graphicx} \usepackage{bbm} \usepackage{comment} \usepackage{mathrsfs} \numberwithin{equation}{section} \usepackage{times} \usepackage{tikz, pgfplots} \pgfplotsset{compat=1.18} \usetikzlibrary{positioning} \usepackage{siunitx} \usepackage{color} \usepackage{abstract} \usetikzlibrary{angles} \usetikzlibrary{arrows.meta} \usepackage{comment} \usepackage{xcolor} \usepackage{mathtools} \usepackage{bm} \usepackage{esvect} \usepackage{hyperref} \usepackage{tikz} \usepackage[dvipsnames]{xcolor} \definecolor{Ilovemaroon}{HTML}{800000} \definecolor{Illinoisorange}{RGB}{255, 95, 5} \hypersetup{ colorlinks = true, linkcolor={black}, urlcolor={Ilovemaroon}, citecolor={Ilovemaroon}, urlcolor = {Ilovemaroon}, citebordercolor = {0.33 .58 0.33}, linkbordercolor = {0.99 .28 0.23}, breaklinks=true} \def\UrlBreaks{\do\/\do-} \pagestyle{myheadings} \newcommand{\C}{\mathbb{C}} \newcommand{\F}{\mathbb{F}} \newcommand{\R}{\mathbb{R}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\N}{\mathbb{N}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\PP}{\mathbb{P}} \newcommand{\HH}{\mathbb{H}} \newcommand{\MU}{\mathbb{\mu}} \newcommand{\TT}{\mathbb{T}}%Torus \newcommand{\GG}{\mathbb{G}} \newcommand{\SSS}{\mathbb{S}}%unit circle \newcommand{\m}{\mathrm{m}} \newcommand{\ord}{\mathrm{ord}} \newcommand\Comment[1]{\textcolor{red}{#1}} \newcommand{\fanm}{\mathscr{M}} \newtheorem{thm}{Theorem}[section] \newtheorem{defn}[thm]{Definition} \newtheorem{prop}[thm]{Proposition} \newtheorem{coro}[thm]{Corollary} \newtheorem{lem}[thm]{Lemma} \newtheorem{rem}[thm]{Remark} \newtheorem{conj}[thm]{Conjecture} \newtheorem{ex}[thm]{Example} \newtheorem{exs}[thm]{Examples} \newcommand{\dd}{\;\mathrm{d}}%differential \newcommand{\e}{\mathrm{e}}%Exponential %\newcommand{\mod}{\mathrm{mod}}%Modulo %\newcommand{\binom}[2]{{#1\choose#2}} %Binomial \newcommand{\pf}{\noindent {\bf PROOF.} \quad} \newcommand{\res}{\mathrm{Res}}%Residue %\newcommand{\qed}{$\Box$} \def\tr{\hbox{tr}\,} \def\diag#1{\hbox{diag}\left(#1\right)} \def\VEV#1{\left\langle #1\right\rangle} \def\VVEV#1{\left\langle\left\langle #1\right\rangle\right\rangle} \newtheorem{thmm}{Theorem} \theoremstyle{remark} \newcommand{\Li}{\mathrm{Li}} %Polylogarithm \newcommand{\I}{\mathrm{I}} %Hyperlogarithm \newcommand{\re}{\mathop{\mathrm{Re}}} % Real part \newcommand{\im}{\mathop{\mathrm{Im}}} % Imaginary part \newcommand{\ii}{\mathrm{i}} %Imaginary unit \newcommand{\Lf}{\mathrm{L}} %L-function \newtheorem{obs}[thm]{Observation} \usepackage{geometry} \geometry{a4paper, margin=1 in} \DeclarePairedDelimiter\ceil{\lceil}{\rceil} \DeclarePairedDelimiter\floor{\lfloor}{\rfloor} \title{\mdseries On a family of counterexamples to Richard Guy's mex sequence problem} \author{Shuta Iwai} \address{ Shuta Iwai: Department of Mathematics, University of Illinois Urbana-Champaign, Altgeld Hall, 1409 W. Green Street, Urbana, IL, 61801, USA} \email{siwai2@illinois.edu} \begin{document} \setcounter{tocdepth}{1} \keywords{Sequence, Periodic, } \subjclass{Primary: 11B99. Secondary: 11A07.} \maketitle \begin{abstract} We give a family of counterexamples to Richard Guy's problem E27 with initial terms of length five adding onto the recent example of length eight. Additionally, we prove that for length one, one always has a ultimately periodic sequence. Lastly we pose a problem regarding the notion of a $z$-th mex sequence. \end{abstract} \section{Introduction and main results} Take some integer $l \geq 1$, then the nonnegative integers $a_{0},...,a_{l-1}$ will be called the initial terms of length $l$. In the book Unsolved Problems in Number Theory, Richard Guy defines the mex sequence by extending the initial terms by \begin{align}\label{eq:seq} a_{n+1} = \min\{a:a \in \mathbb{Z}_{\geq0} \!\setminus S_{n}\}, \quad S_{n} = \{a_{i}+a_{n-i}: 0 \leq i \leq n\}. \end{align} That is, $a_{n+1}$ is the smallest nonnegative integer for which the value is not in the set of the summed terms \cite{Guy}. An example with 1,4,3,2 is shown in OEIS entry number A067017 \cite{OEIS}. The sequence is related to octal games among other works, a detailed description for which can be found in problem E27 \cite{Guy}. Guy asks if every sequence following (\ref{eq:seq}) is ultimately periodic \cite{Guy}. Interestingly, Guy never specifies the length of the initial terms \cite{Guy}. Recently, a Lean verified pre-print provided an unbounded counterexample generated by the eight initial terms given by 1,1,1,0,1,0,1,1 \cite{Jandhyala}. In this paper, we provide a family of ultimately non-periodic sequences with initial terms having length five in Theorem \ref{thm:1.1}. As a corollary, we prove the existence of infinitely many ultimately non-periodic mex sequences with initial terms having length five or more. We also show any mex sequence generated by a single initial term is ultimately periodic. As a result, the minimal length of initial terms containing a ultimately non-periodic mex sequence must have length two, three, four, or five. Lastly, we define the notion of a $z$-th mex sequence, and state a problem similar to that of Guy's original problem. \begin{thm}\label{thm:1.1} The family of mex sequence generated by 2,0,c,0,2 with $c \geq 2$ is not ultimately periodic and is unbounded. Additionally, the sequence is given by \begin{align*} a_{n} = \begin{cases} 0 &\text{if } n \equiv 0 \text{ mod 3}\\ \frac{1}{3}(n+2) \quad &\text{if } n \equiv 1 \text{ mod 3}\\ 1 \quad &\text{if } n \equiv 2 \text{ mod 3} \end{cases} \end{align*} for $n \geq 5$ \end{thm} \begin{coro}\label{coro:1.2} For all mex sequence generated by initial terms with length $l \geq 5$, there are infinitely many sequences for which the mex sequence is ultimately non-periodic. \end{coro} \begin{lem}\label{lem:lengthone} Sequence of length one is ultimately periodic with periods two or five. \end{lem} \begin{coro}\label{coro:1.4} For a mex sequence to be ultimately non-periodic, the minimal length of the starting terms is two, three, four, or five. \end{coro} \begin{conj}\label{conj:minimal} The smallest length of the initial terms for a ultimately non-periodic mex sequence to exist is five. That is, any mex sequence generated with initial terms of length up to four are ultimately periodic. \end{conj} \begin{thm}\label{thm:1.6} The sequence 2,0,2,0,2 is ultimately periodic for the generalized mex sequence with $z = 2$. \end{thm} \section{Proof of Theorem 1.1 and Corollary 1.2} Before we prove Theorem \ref{thm:1.1}, the first few terms of the mex sequence generated by initial terms $a_{0} = 2, a_{1} = 0, a_{2} = c, a_{3} = 0, a_{4} = 2$ with $c \geq 2$ are shown below \begin{align}\label{eq:sequence} 2, 0, c, 0, 2, 1, 0, 3, 1, 0, 4, 1, 0, 5... \end{align} The pattern reflects a unit growth every three terms past the first five terms. \begin{proof} Suppose $n \leq 11$ then one observes from \ref{eq:sequence} that the terms grow every three terms. Consider the case when $n \geq 12$. Let us denote $a_{0} = 2, a_{1} = 0, a_{2} = c, a_{3} = 0, a_{4} = 2$ and suppose for all $m$ with $5 \leq m \leq n$, we have \begin{align}\label{eq:a_m cases} a_{m} = \begin{cases} 0 &\text{if } m \equiv 0 \text{ mod 3}\\ \frac{1}{3}(m+2) \quad &\text{if } m \equiv 1 \text{ mod 3}\\ 1 \quad &\text{if } m \equiv 2 \text{ mod 3} \end{cases} \end{align} Let us introduce the sets $S^{k}_{1},S^{k}_{2},$ and $S^{k}$ defined by \begin{align*} S^{k}_{1} = \{a_{i} + a_{n-i}: 0 \leq i < 5\} \quad S_{2}^{k} = \{a_{i} + a_{n-i}: 5 \leq i \leq n-5\}, \quad S^{k} = S_{1}^{k}\cup S_{2}^{k} \end{align*} whenever $n \equiv k \text{ mod 3}$. We consider the three cases for $n$ and for each case, we use strong induction to prove that \ref{eq:a_m cases} holds.\\ \textbf{Case 1:} Suppose $n \equiv 0 \text{ mod 3}$ then a direct calculation yields \begin{align}\label{set:S_1} S^{0}_{1} &= \left\{0,1,2,3,\frac{1}{3}n+c\right\} \end{align} In order to calculate the elements in $S_{2}^{0}$ we consider $a_{i}+a_{n-i}$ for each congruence class of $i$. Computing each case on $i$ gives us \begin{align*} a_{i}+a_{n-i} = \begin{cases} 0 &\text{if } i \equiv 0 \text{ mod 3}, \quad 5 \leq i \leq n-6\\ a_{i} + 1 &\text{if } i \equiv 1 \text{ mod 3}, \quad 5 \leq i \leq n-5\\ a_{n-i}+1 &\text{if } i \equiv 2 \text{ mod 3}, \quad 5 \leq i \leq n-7\\ \end{cases} \end{align*} and applying the induction hypothesis from \ref{eq:a_m cases} gives us \begin{align*} a_{i}+a_{n-i} = \begin{cases} 0 &\text{if } i \equiv 0 \text{ mod 3}, \quad 5 \leq i \leq n-6\\ \frac{1}{3}(i+2) + 1 &\text{if } i \equiv 1 \text{ mod 3}, \quad 5 \leq i \leq n-5\\ \frac{1}{3}(n-i+2)+1 &\text{if } i \equiv 2 \text{ mod 3}, \quad 5 \leq i \leq n-7 \end{cases} \end{align*} and hence $S_{2}^{0}$ is the set \begin{align*} S_{2}^{0} = \left\{0,4,...,\frac{1}{3}n\right\} \end{align*} Taking the union of the two sets $S_{1}^{0},S_{2}^{0}$ leaves us with \begin{align*} S^{0} =\left\{0,1,2,3,...,\frac{1}{3}n, \frac{1}{3}n+c\right\} \end{align*} and observe that the smallest integer not inside $S^{0}$ is $\frac{1}{3}n+1$ since $c \geq 2$ and hence we have $a_{n+1} = \frac{1}{3}n+1 = \frac{1}{3}(n+1+2)$.\\ \textbf{Case 2:} Suppose $n \equiv 1 \text{ mod 3}$. Calculating $S_{1}^{1}$ by using \ref{eq:a_m cases} gives us \begin{align*} S_{1}^{1} = \left\{0,2,1+c,\frac{1}{3}(n-1), \frac{1}{3}(n+2)+2 \right\} \end{align*} Considering each case on $i$, we have \begin{align*} a_{i}+a_{n-i} = \begin{cases} \frac{1}{3}(n-i+2) &\text{if } i \equiv 0 \text{ mod 3}, \quad 5 \leq i \leq n-7\\ \frac{1}{3}(i+2) &\text{if } i \equiv 1 \text{ mod 3}, \quad 5 \leq i \leq n-6\\ 2 &\text{if } i \equiv 2 \text{ mod 3}, \quad 5 \leq i \leq n-5\\ \end{cases} \end{align*} and $S_{2}^{1}$ is given by \begin{align*} S_{2}^{1} = \left\{2,3,...,\frac{1}{3}(n-4)\right\} \end{align*} and $S^{1}$ is the set \begin{align*} S^{1} = \left\{0,2,..,\frac{1}{3}(n-4),\frac{1}{3}(n-1),\frac{1}{3}(n+2)+2,1+c\right\} \end{align*} The smallest nonnegative integer not in $S^{1}$ is 1. Therefore, $a_{n+1} = 1$.\\ \textbf{Case 3:} Suppose $n \equiv 2 \text{ mod 3}$ then by (\ref{eq:a_m cases}), we have $S_{1}^{2}$ to be \begin{align*} S_{1}^{2} = \{1,3,c,\frac{1}{3}(n+1),\frac{1}{3}(n-2)+2\} \end{align*} and the sums are \begin{align*} a_{i}+a_{n-i} = \begin{cases} 1 &\text{if } i \equiv 0 \text{ mod 3}, \quad 5 \leq i \leq n-5\\ \frac{1}{3}(n+4) &\text{if } i \equiv 1 \text{ mod 3}, \quad 5 \leq i \leq n-7\\ 1 &\text{if } i \equiv 2 \text{ mod 3}, \quad 5 \leq i \leq n-6\\ \end{cases} \end{align*} Therefore, $S_{2}^{2}$ is given by \begin{align*} S_{2}^{2} = \left\{1,\frac{1}{3}(n+4)\right\} \end{align*} and $S^{2}$ is the set \begin{align*} S^{2} = \left\{1, 3, \frac{1}{3}(n-2)+2,\frac{1}{3}(n+1),\frac{1}{3}(n+4),c\right\} \end{align*} We see that the minimum nonnegative integer not inside $S^{2}$ is 0 and hence we have $a_{n+1} = 0$. \end{proof} Corollary \ref{coro:1.2} follows immediately. \begin{proof} Consider one of the infinitely many initial terms given in Theorem \ref{thm:1.1}. Since these terms form mex sequences which are unbounded, one can take the first $l$ terms with $l \geq 5$ of the sequence and take the $l$-th terms as the initial terms. The mex sequence generated by these $l$-th terms are then also unbounded. \end{proof} \section{Proof of Lemma 1.3} In this section, we prove Lemma \ref{lem:lengthone}. \begin{proof} Take some nonnegative integer as the first term of the sequence, $a_{0}$. We prove by induction that the mex sequence formed by $a_{0}$ is ultimately periodic by considering cases for when $a_{0} = 0, a_{0} = 1,$ and $a_{0} > 1$.\\ \textbf{Case 1:} Suppose $a_{0} = 0$ with $n \geq 6$. The first few terms are given by \begin{align*} 0,1,0,1,0,1... \end{align*} Therefore, suppose for all integers $m$ with $0 \leq m \leq n$, we have \begin{align*} a_{m} = \begin{cases} 0 &\text{if } m \equiv 0 \text{ mod 2}\\ 1 &\text{if } m \equiv 1 \text{ mod 2} \end{cases} \end{align*} Suppose $n \equiv 0 \text{ mod 2}$ then we have \begin{align}\label{lem:eq1} a_{i} + a_{n-i} = \begin{cases} 0 &\text{if } i \equiv 0 \text{ mod 2}\\ 2 &\text{if } i \equiv 1 \text{ mod 2}\\ \end{cases} \end{align} and hence we have the set given by $S = \{a_{i}+a_{n-i}: 0 \leq i \leq n\}$ is $\{0,2\}$. Therefore, we have $a_{n+1} = 1$. Now suppose $n \equiv 1 \text{ mod 2}$ then the values of (\ref{lem:eq1}) are always one, so $S = \{1\}$. Therefore $a_{n+1} = 0$. The case with $n \leq 5$ falls immediately. As a result, the sequence has period two.\\ \textbf{Case 2:} Suppose $a_{0} = 1$ then the first few terms are as follows \begin{align*} 1,0,0,2,1,1,0,0,2,1,1,0,0,... \end{align*} Suppose for integers $m$ with $1 \leq m \leq n$ with $n \geq 6$, we have \begin{align*} a_{m} = \begin{cases} 1 &\text{if } m \equiv 0 \text{ mod 5}\\ 0 &\text{if } m \equiv 1 \text{ mod 5}\\ 0 &\text{if } m \equiv 2 \text{ mod 5}\\ 2 &\text{if } m \equiv 3 \text{ mod 5}\\ 1 &\text{if } m \equiv 4 \text{ mod 5}\\ \end{cases} \end{align*} then we consider all five congruence classes $n$ can have. Let us denote \begin{align}\label{notation:S} S_{1}^{k} &= \{a_{0} + a_{n}\}\\ S_{2}^{k} &= \{a_{i}+a_{n-i}: 1 \leq i \leq n-1\}\\ S^{k} &= S_{1}^{k} \cup S_{2}^{k} \end{align} with $n \equiv k \text{ mod 5}$ for $k \in \{0,1,2,3,4\}$ then we have the following \begin{align*} S_{1}^{0} = \{2\}, \quad S_{2}^{0} &= \{1,2\}, \quad S^{0} = \{1,2\}\\ S_{1}^{1}= \{1\}, \quad S_{2}^{1} &= \{1,4\}, \quad S^{1} = \{1,4\}\\ S_{1}^{2} = \{1\}, \quad S_{2}^{2} &= \{0,1,3\}, S^{2} = \{0,1,3\}\\ S_{1}^{3} = \{3\}, \quad S_{2}^{3} &= \{0,2,3\}, S^{3} = \{0,2,3\}\\ S_{1}^{4} = \{2\}, \quad S_{2}^{4} &= \{0,2\}, \quad S^{4} = \{0,2\} \end{align*} We see that taking the minimum nonnegative integer not in $S^{k}$ for each $k$ gives us $a_{n+1}$, which correctly matches all the cases and hence the sequence is periodic. The case for $n \leq 5$ falls immediately by computation.\\ \textbf{Case 3:} Now consider $a_{0} > 1$ then the sequences are as follows \begin{align*} a_{0},0,0,1,1,2,0,0,1,1,2,0,0,... \end{align*} Suppose we have for $m$ with $1 \leq m \leq n$ with $n \geq 6$, \begin{align*} a_{m} = \begin{cases} 2 &\text{if } m \equiv 0 \text{ mod 5}\\ 0 &\text{if } m \equiv 1 \text{ mod 5}\\ 0 &\text{if } m \equiv 2 \text{ mod 5}\\ 1 &\text{if } m \equiv 3 \text{ mod 5}\\ 1 &\text{if } m \equiv 4 \text{ mod 5}\\ \end{cases} \end{align*} Let us borrow the same notation of $S_{1}^{k},S_{2}^{k},$ and $S^{k}$ then we have \begin{align*} S_{1}^{0} &= \{a_{0}+2\}, \quad S_{2}^{0} = \{1,4\}, \quad S^{0} = \{1,4,a_{0}+2\}\\ S_{1}^{1} &= \{a_{0}\}, \quad S_{2}^{1} = \{1,2\}, \quad S^{1} = \{1,2,a_{0}\}\\ S_{1}^{2} &= \{a_{0}\}, \quad S_{2}^{2} = \{0,2\}, \quad S^{2} = \{0,2,a_{0}\}\\ S_{1}^{3}& = \{a_{0}+1\}, \quad S_{2}^{3} = \{0,2,3\}, \quad S^{3} = \{0,2,3,a_{0}+1\}\\ S_{1}^{4} &= \{a_{0} + 1\}, \quad S_{2}^{4} = \{0,1,3\}, \quad S^{4} = \{0,1,3,a_{0}+1\} \end{align*} Considering each $S^{k}$, we see that the minimum integer value not in each $S^{k}$ provides the correct $a_{n+1}$ term for each case, and hence we have the sequence to be ultimately periodic. The case when $n \leq 5$ falls by direct calculation. Combining all the cases gives us the result. \end{proof} The first and second cases in the above proof also proves that sequences with initial terms set to $1,0$ or $0,1$ are ultimately periodic. However, for a more general set of values given by $a_{0},a_{1}$, computational results shows that a more careful case analysis is needed. We refer the reader to Conjecture \ref{conj:minimal}. \\ Now we prove Corollary \ref{coro:1.4}. \begin{proof} By Lemma \ref{lem:lengthone} we have that any mex sequence generated from a single initial term is ultimately periodic and from Corollary \ref{coro:1.2}, any mex sequence generated by five or more initial terms contains a ultimately non-periodic sequence. Therefore, the minimal length of the initial terms to generate a ultimately non-periodic mex sequences is those with length two, three, four, or five. \end{proof} After extensive computation brute forcing all cases involving 0 and 1 as well as small values, we conjecture in Conjecture \ref{conj:minimal} the minimal length to be five. \section{Proof of Theorem \ref{thm:1.6}} Before we prove Theorem \ref{thm:1.6}, we generalize the mex sequence defined by Guy by introducing the $z$th mex sequence. For a given sequence, let us extend the sequence by $a_{n+1} = \min_{z}(\mathbb{Z}_{\geq0} \!\setminus S_{n})$ with $S_{n} = \{a_{i} + a_{n-i}: 0 \leq i \leq n\}$ where $\min_{z}$ denotes taking the $z$-th minimum value. For example, consider the $z$-th mex sequence of $2,0,2,0,2$ when $z = 2$ given by \begin{align}\label{seq: general mex} 2,0,2,0,2,2,1,5,3,1,2,2,1,6,7,1,5,2,1,4,2,1,5,2,1,5,2,... \end{align} We prove that under this new definition, the sequence $2,0,2,0,2$ is ultimately periodic when $z = 2$, proving Theorem \ref{thm:1.6}. \begin{proof} A direct computation gives us (\ref{seq: general mex}). Let us denote $a_{0} = 2, a_{1} = 0,...,a_{20} = 2$ then suppose for all integer $m$ with $21 \leq m \leq n$ we have \begin{align}\label{cases:final} a_{m} = \begin{cases} 1 &\text{if } m \equiv 0 \text{ mod 3}\\ 5 &\text{if } m \equiv 1 \text{ mod 3}\\ 2 &\text{if } m \equiv 2 \text{ mod 3}\\ \end{cases} \end{align} and we prove periodicity holds for all $n \geq 44$ by induction. We again let $S_{1}^{k} = \{a_{i} + a_{n-i} : 0 \leq i \leq 20\}, S_{2}^{k} = \{a_{i}+a_{n-i} : 21 \leq i \leq n-21\}$ and $S^{k} = S_{1}^{k}\cup S_{2}^{k}$ where $n \equiv k \text{ mod 3},$ $k \in \{0,1,2\}$. Consider when we have $n \equiv 0 \text{ mod 3}$ then a direct computation gives us \begin{align*} S_{1}^{0} = \{1,2,3,4,6,7,8,12\} \end{align*} and for $S_{2}^{0}$ observe that applying \ref{cases:final}, we have \begin{align*} a_{i}+a_{n-i} = \begin{cases} 2 &\text{if } i \equiv 0 \text{ mod 3}\\ 7 &\text{if } i \equiv 1, 2 \text{ mod 3}\\ \end{cases} \end{align*} and hence we have \begin{align*} S_{2}^{0} = \{2,7\} \end{align*} and hence the second smallest nonnegative integer not in the set $S^{0}$ is 5. The same argument holds for the other two cases providing us with \begin{align*} S_{1}^{1} = \{1,3,4,5,6,7,9\}, \quad S_{2}^{1} = \{4,6\} \end{align*} and hence we have 2 as the second smallest nonnegative integer not in the set $S^{1}$. Lastly, we have \begin{align*} S_{1}^{2} = \{2,3,4,5,7,8,9,10,11\}, \quad S_{2}^{2} = \{3,10\} \end{align*} and hence we have 1 as the second smallest nonnegative integer not in $S^{2}$.\\ Each case gives exactly $a_{n+1}$ and for the case when $n \leq 43$ direct computation proves ultimate periodicity. Therefore, the sequence is ultimately periodic. \end{proof} It would be intriguing to see if there exists some $z$ for which every mex sequence with initial terms of any length is ultimately periodic. Additionally, one might also study the bounds on the length of the periods. \section{Acknowledgment} Claude Opus 5.5 with thinking level set to high was used to write code which computed the first one hundred values for thousands of different sequences. In particular, the sequence 2,0,2,0,2 was computed through this method as well as 2,0,3,0,2 and its families. Additionally, the final manuscript was checked using the same model for any typos or grammatical errors while the proof, generalization, and analysis were all formulated and written independently without any assistance. \begin{thebibliography}{99} \bibitem{OEIS} OEIS Foundation Inc., Entry A067017 in The On-Line Encyclopedia of Integer Sequences, \url{https://oeis.org/}, (2026). \bibitem{Guy} R. K. Guy, \textit{Unsolved Problems in Number Theory}, Springer, New York, (2004). \bibitem{Jandhyala} V. Jandhyala, \textit{A mex sequence that is ultimately not periodic}, preprint, \url{https://github.com/jvvk/mathematics/blob/main/mex-sequence-not-periodic/paper/mex.pdf}, (2026). \end{thebibliography} \end{document}