login
A032974
Numbers with the property that all pairs of consecutive base-3 digits differ by 0 or 1.
1
1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 16, 17, 21, 22, 23, 25, 26, 27, 28, 30, 31, 32, 36, 37, 39, 40, 41, 43, 44, 48, 49, 50, 52, 53, 63, 64, 66, 67, 68, 70, 71, 75, 76, 77, 79, 80, 81, 82, 84, 85, 86, 90, 91, 93, 94, 95, 97, 98, 108, 109, 111
OFFSET
1,2
MATHEMATICA
Select[Range[120], Max[Abs[Differences[IntegerDigits[#, 3]]]]<2&] (* Harvey P. Dale, Nov 06 2016 *)
CROSSREFS
A122975 is a subsequence.
Cf. A007089.
Sequence in context: A080919 A267303 A267307 * A127565 A082186 A099849
KEYWORD
nonn,base,easy
STATUS
approved