The Hofstadter figure-figure sequence and its complementary sequence
are defined by
,
, and
for ,
where
lists in increasing order the positive integers
not contained in
. For example,
, so the next term of
is
, giving
. The next integer is 5, so
and
. Continuing in this manner gives the "figure"
sequence
as 1, 3, 7, 12, 18, 26, 35, 45, 56, ... (OEIS A005228)
and the "space" sequence as 2, 4, 5, 6, 8, 9, 10, 11, 13, 14, ... (OEIS
A030124).