OFFSET
0,3
COMMENTS
Using powers of 2 instead of squares yields A081241 prefixed by 0.
Using Fibonacci numbers instead of squares yields A095903 prefixed by 0.
A permutation of the nonnegative integers: all terms are distinct; the sequence contains 0; if all the values up to v >= 0 have appeared, v+1 necessarily appears, at the latest, as the first child of v.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, PARI program
EXAMPLE
The first terms, arranged as a binary tree, are:
________0________
| |
____1___ ____4___
| | | |
__2_ __5_ __8_ _13_
| | | | | | | |
3 6 9 14 12 17 22 29
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,tabf,new
AUTHOR
Rémy Sigrist, Jul 07 2026
STATUS
approved
