OFFSET
1,2
COMMENTS
a(n) = 10^k occurs before n = 10^k for 0 < k <= 5.
Conjecture: permutation of the nonnegative numbers.
A decimal version of A339607, a permutation of the integers having to do with binary weight, but instead using digital root rather than digit sum. The plots of these sequences have similar features.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Plot (n, a(n)) for 1 <= n <= 10^3 with records in dark red and least unused numbers in dark blue, with records of a(n)-n in red, many labeled, and records of n-a(n) in blue, many labeled.
Michael De Vlieger, Logarithmic plot (n, a(n)-n) for 1 <= n <= 10^5 with records labeled in red, records of n-a(n) labeled in blue, and zeros plotted in black.
MATHEMATICA
Block[{a = {0, 10}, k, r}, Do[k = 1; r = # + 9 Boole[# == 0] &@ Mod[a[[-1]], 9]; While[Nand[FreeQ[a, k], ! FreeQ[IntegerDigits[k], r]], k++]; AppendTo[a, k], 66]; a]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michael De Vlieger, Jan 21 2021
STATUS
approved