A038586 Write n in ternary then sort the digits.
0, 1, 2, 1, 11, 12, 2, 12, 22, 1, 11, 12, 11, 111, 112, 12, 112, 122, 2, 12, 22, 12, 112, 122, 22, 122, 222, 1, 11, 12, 11, 111, 112, 12, 112, 122, 11, 111, 112, 111, 1111, 1112, 112, 1112, 1122, 12, 112, 122, 112, 1112, 1122, 122, 1122, 1222, 2, 12, 22, 12, 112
Offset: 0
Links
- Michael Gilleland, Some Self-Similar Integer Sequences
Crossrefs
Cf. A038573.
Extensions
More terms from Erich Friedman.