% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
  11pt,
]{article}
\usepackage{amsmath,amssymb}
\usepackage{iftex}
\ifPDFTeX
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
  \usepackage{unicode-math} % this also loads fontspec
  \defaultfontfeatures{Scale=MatchLowercase}
  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
\usepackage{lmodern}
\ifPDFTeX\else
  % xetex/luatex font selection
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
  \usepackage[]{microtype}
  \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
  \IfFileExists{parskip.sty}{%
    \usepackage{parskip}
  }{% else
    \setlength{\parindent}{0pt}
    \setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
  \KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\usepackage[margin=1in]{geometry}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\ifLuaTeX
  \usepackage{selnolig}  % disable illegal ligatures
\fi
\usepackage{bookmark}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same}
\hypersetup{
  hidelinks,
  pdfcreator={LaTeX via pandoc}}

\author{}
\date{}

\begin{document}

\section{The least integer missing from bounded Fibonacci
walks}\label{the-least-integer-missing-from-bounded-fibonacci-walks}

Hajime Katsumoto asked in 2022 whether the successive differences of the
least missing integers follow the pattern
\(3,5,8,8,13,13,13,21,\ldots\). A354414 gives the equivalent closed form
as a conjecture by Muthu Veerappan Ramalingam dated June 1, 2026.
\href{https://smc.math.ca/wp-content/uploads/2022/05/Wholeissue_48_5.pdf}{Crux
Mathematicorum 48(5), pp.~279--280} ·
\href{https://oeis.org/A354414}{OEIS A354414}

Let \(F_0=0, F_1=1\), and set \(F_{j+2}=F_j+F_{j+1}\). For
\(1\le b\le a\le n\), consider the sequence \(a,b,a+b,a+2b,\ldots\). Let
\(m(n)\) be the least positive integer missing from the union of these
sequences, with \(m(0)=1\).

\textbf{Theorem.} For \(k\ge2\) and \(F_k\le n<F_{k+1}\), \[
m(n)=(n+1)F_{k+2}-F_k F_{k+1}.
\] Throughout the same range of \(n\), the first difference
\(m(n)-m(n-1)\) equals \(F_{k+2}\). This range has \(F_{k-1}\) terms.

\subsection{A test for reachability}\label{a-test-for-reachability}

Fix \(l\ge2\), put \(A=F_l, B=F_{l+1}\), and take an integer \(x\) in
\(nA<x\le nB\). Then \[
x\text{ occurs}\quad\Longleftrightarrow\quad n(A+B)-x\in\langle A,B\rangle ,
\] where \(\langle A,B\rangle=\{As+Bt:s,t\ge0 \text{ are integers}\}\).

The recurrence gives all terms after the first as \(F_j a+F_{j+1}b\),
with \(j\ge0\). Every allowable first term also occurs as a second term
by taking a constant pair of seeds. We first show that \(x\) occurs
exactly when \(x=Au+Bv\) for some integers \(u,v\le n\).

Suppose \(x\) occurs at index \(j\) in the Fibonacci expression. For
\(j+2\le l\), its maximum is \(nF_{j+2}\le nA<x\). At \(j=l-1\) take
\((u,v)=(b-a,a)\), and at \(j=l\) take \((a,b)\). For \(j>l\), lower the
index repeatedly by replacing the coefficient pair \((c,d)\) with
\((d,c+d)\). This operation preserves the value and ends with
\(0<u\le v\). Since \(Bv\le x\le nB\), both coefficients are at most
\(n\).

Conversely, suppose such integers \(u,v\) exist. From \(Au+Bv>nA\) and
\(u\le n\) we get \(v>0\). Also \(u+v>0\), since otherwise
\(x=A(u+v)+(B-A)v\le (B-A)n\le An\). If \(u\le0\), the ordered seeds
\((v,u+v)\) at index \(l-1\) give \(x\). If \(u>0\), both coefficients
are positive. As long as \(u<v\), increase the index by one and replace
\((u,v)\) with \((v-u,u)\). This preserves the value and the upper bound
\(n\), while strictly reducing the sum of the positive coefficients. The
procedure terminates with an ordered pair of seeds. Subtracting the
coefficients \(u,v\) from \(n\) now proves the test.

\subsection{Locating the first gap}\label{locating-the-first-gap}

For coprime positive \(A,B\), put \(G=AB-A-B\). The two-generator
Frobenius symmetry says that, for every integer \(d\), \[
G-d\in\langle A,B\rangle\quad\Longleftrightarrow\quad d\notin\langle A,B\rangle.
\] Indeed write \(d=As+Bt\) with \(0\le s<B\), using the inverse of
\(A\) modulo \(B\). Then \(d\in\langle A,B\rangle\) exactly when
\(t\ge0\), since all other representations add \(Bq\) to \(s\) and
subtract \(Aq\) from \(t\). The corresponding representation of \(G-d\)
has coefficients \(B-1-s,-1-t\), proving the assertion even for negative
\(d\).

Set \(C_l=(n+1)(A+B)-AB\). Since consecutive Fibonacci numbers are
coprime, an integer \(x\) in our strip is missing exactly when
\(x-C_l\in\langle A,B\rangle\). In particular all its integers below
\(C_l\) occur. If \(B\le n\), then \(C_l-nB=(n-B)A+A+B>0\), so every
integer of the strip occurs. Every positive \(x\le n\) is itself an
allowable seed.

Now take \(k\) with \(A=F_k\le n<B=F_{k+1}\). The candidate \(C_k\)
exceeds \(nA\), since \(C_k-nA=(n-A)B+A+B>0\). For \(n\le B-3\), the
inequality \(B\le2A\) gives \(C_k-nB\le B-2A\le0\). The strip test
yields a gap at \(C_k\), and all its smaller positive integers occur.

It remains to handle the cases in which the candidate crosses into the
next strip. Take \(n\ge2\), so \(A\ge2\) and \(B\le2A\). For \(n=B-1\),
one has \(C_k=nB+B\le n(A+B)\) and \(C_{k+1}=C_k\). Apply the strip test
on the next strip with generators \(B,A+B\). For \(n=B-2\), one has
\(C_k=nB+B-A\le n(A+B)\) and \(C_{k+1}=C_k-B=nB-A\). Thus integers from
\(nB+1\) through \(C_k-1\) have differences from \(C_{k+1}\) strictly
between \(0\) and \(B\), so none belongs to \(\langle B,A+B\rangle\). At
\(C_k\) the difference is \(B\), which does belong. This proves the
formula. For \(n=1\) the only sequence is the Fibonacci sequence, giving
\(m(1)=4\).

Finally, the formula is linear in \(n\) between successive Fibonacci
numbers. At a change of pair, substituting \(n=F_k-1\) into either
adjacent linear formula gives \(F_k^2\). Therefore the difference
\(F_{k+2}\) holds even at the first index of its block. Its block
contains \(F_{k+1}-F_k=F_{k-1}\) indices, exactly as Katsumoto
predicted.

\end{document}
