OFFSET
1,2
COMMENTS
Every term a(n) > 0 of the sequence stands between two terms bigger than a(n) or between two terms smaller than a(n); this is also true for every digit d > 0 of the sequence that stands between two digits bigger than d or between two digits smaller than d.
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
EXAMPLE
The sequence starts with 0,2,1,4,3,6,5,8,7,80,9,13,12,15,14,17,16,19...
If we consider the terms, we see indeed that 0 < 2 > 1 < 4 > 3 < 6 > 5 < 8 > 7 < 80 > 9 < 13 > 12 < 15 > 14 < 17 > 16 < 19... and if we consider the digits, we see also that 0 < 2 > 1 < 4 > 3 < 6 > 5 < 8 > 7 < 8 > 0 < 9 > 1 < 3 > 1 < 2 > 1 < 5 > 1 < 4 > 1 < 7 > 1 < 6 > 1 < 9...
So no matter the elements considered (terms, digits), those elements seem to ride on a 1-step roller-coaster: up, down, up, down, up, etc.
CROSSREFS
KEYWORD
AUTHOR
Eric Angelini and Jean-Marc Falcoz, Aug 02 2018
STATUS
approved