A023786 Katadromes: digits in base 4 are in strict descending order.
0, 1, 2, 3, 4, 8, 9, 12, 13, 14, 36, 52, 56, 57, 228
Offset: 1
Examples
228 in base 4 is 3210. Since those digits are in strictly descending order, 228 is in the sequence. 229 in base 4 is 3211. Although those digits are in descending order, the repeated digit 1 means 229 is not in the sequence.
Programs
-
Mathematica
Select[Range[0, 255], Max[Differences[IntegerDigits[#, 4]]] < 0 &] (* Harvey P. Dale, Dec 15 2014 *)
Comments