Imagine standing on the first square of an infinite sidewalk labelled $1,1,2,2,3,3,\dots$
Whenever you are on a square labelled $k$, you may jump $k$ squares in either direction to another square.
What is the minimal number of jumps required to reach the $n^{th}$ square ?
The sequence begins $0,1,2,5,3,6,9,4, \dots$ For example, the fourth term is $5$, because to get to the fourth square (labelled '$2$'), the quickest way is to jump: forward, forward, forward, forward, and backward.
One might need to draw the possible paths to get familiar with the sequence.
One can prove that it’s possible to reach any square, so this sequence is well defined. The question is how to prove this.
$\textbf{Prove that all squares can be reached by such jumps }$
TLDR
Yes, the sequence is well defined. For any target square $m>0$ we can show it's possible to reach $m$ from a strictly smaller square.
All the details are explained below. I'm just adding this section at the top so you don't lose sight of the overall idea among all the fiddling with modular arithmetic.
Full proof
I'll index the squares as $0, 1, 2, \cdots$, so square $k$ has the label $s(k) = \lfloor \frac k 2 \rfloor + 1$. Fix a target square $N > 0$; I'll prove that it's possible to travel from square $0$ to square $N$.
Let $S = \{k \in \mathbb{Z}_{\ge 0} : \text{it's possible to travel from $k$ to $N$}\}$ and let $m$ be the smallest integer in $S$. Our goal is to show $m=0$. To do that, we'll rule out all other options using several subcases.
Putting all of those cases together, we conclude $m$ can't be any positive integer, so we must have $m = 0$ and thus square $N$ is reachable from square $0$ after all.