OFFSET
1,2
COMMENTS
Inverse of the permutation A119589. - M. F. Hasler, Oct 26 2019
FORMULA
a(n) = a(n-1) + a(n-10) - a(n-11) for 21 < n < 100. - M. F. Hasler, Sep 03 2018
a(n) = k such that A119589(k) = n. - M. F. Hasler, Oct 26 2019
EXAMPLE
a(1) = 1
a(10) = 2 because "10" comes after "1"
a(100) = 3 because "100" comes after "10", but before "11"
PROG
(PARI) vecsort(vecsort(vector(100, n, Str(n)), , 1), , 1) \\ M. F. Hasler, Sep 03 2018, simplified Oct 25 2019
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Dmitry Kamenetsky, Jun 01 2006, Jun 03 2006
STATUS
approved