Cestnik's nested recurrence defines an integer sequence starting at
by
for nonnegative integers , as long as both indices on the right are available.
The first terms are 0, 1, 1, 2, 2, 3, 2, 4, 3, 3, 4, 3, 5, 3, 4, 5, ... (OEIS A399998).
Each successful step adds a graph vertex labeled
to a rooted tree with root
vertex 0, by making
its parent. The graph
distance from graph vertex
to the root vertex is
, since adjoining a child increases the graph
distance by 1. As in several Hofstadter sequences,
earlier terms determine the indices in the recurrence
relation.
Whether the recurrence relation is defined for all nonnegative integers remains open.
The asymptotic formula as
is conjectured (Cestnik
2026).