OFFSET
0,4
LINKS
Scott R. Shannon, Plot of a(n) for n = 1..10000.
Scott R. Shannon, Plot of a(n) for n = 1..1000000. Note how this is self-similar to the plot for n = 1 to 10000.
EXAMPLE
a(1) = 0 as there are no entries before a(0).
a(2) = 1 as a(1) = 0 has one digit, and there is one previous entry before a(1) that has one digit.
a(12) = 0 as a(11) = 10 has two digits, and there are no previous entries before a(11) that have two digits.
a(13) = 11 as a(12) = 0 has one digit, and there are eleven previous entries before a(12) that have one digit.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Scott R. Shannon, Nov 04 2019
STATUS
approved