OFFSET
0,2
COMMENTS
In the definition, dist(a(n), SQUARES) = A053188(a(n)) is the distance of a(n) from the nearest square. "... has the same digits" means that the concatenation of the terms yields the same string of digits, for the sequence a(.) and the sequence d(.).
Conjectured to be a permutation of the nonnegative integers. The inverse permutation would start (0, 2, 3, 11, 9, 12, 4, 7, 19, 21, 1, 8, 16, 20, 18, 24, ...)
LINKS
Eric Angelini, Digit-spines, personal blog "Cinquante signes" on blogspot.com, Jan. 11, 2023.
EXAMPLE
Below, row "s" lists the closest square to a(n) and row "d" the absolute difference |a(n)-s|. We have the same sequence of digits in rows a (this sequence) and d:
n : 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ...
a : 0 10 1 2 6 42 20 7 11 4 56 3 5 21 30 ...
s : 0 9 1 1 4 36 16 9 9 4 49 4 6 25 25 ...
d : 0 1 0 1 2 6 4 2 2 0 7 1 1 4 5 ...
PROG
(PARI) spine(x->x^2, 200) \\ See A359734 for spine()
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler and Eric Angelini, Jan 12 2023
STATUS
approved