login
A037081
In ternary expansion of n, reading from left to right, successive runs of the digits occur in order ...,0,1,2,0,1,2,...
3
0, 1, 2, 4, 5, 6, 8, 13, 14, 15, 17, 18, 19, 24, 26, 40, 41, 42, 44, 45, 46, 51, 53, 54, 55, 58, 59, 72, 73, 78, 80, 121, 122, 123, 125, 126, 127, 132, 134, 135, 136, 139, 140, 153, 154, 159, 161, 162, 163, 166, 167, 175, 176, 177, 179, 216, 217, 220, 221, 234, 235
OFFSET
0,3
EXAMPLE
For example, any number whose ternary expansion is 11..122..200..011..11 passes the test.
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
More terms from Erich Friedman
STATUS
approved