login
A371110
Integers whose ternary representation consists of concatenated runs C(1)B(1)A(1)C(2)B(2)A(2)...C(k)B(k)A(k), where A(i) is a run of 1's, B(i) a run of 0's, and C(i) a run of 2's, for i = 1..k.
7
19, 55, 58, 73, 163, 166, 175, 217, 220, 235, 487, 490, 499, 526, 532, 649, 652, 661, 703, 706, 721, 1459, 1462, 1471, 1498, 1504, 1579, 1585, 1594, 1597, 1612, 1945, 1948, 1957, 1984, 1990, 2107, 2110, 2119, 2161, 2164, 2179
OFFSET
1,1
MATHEMATICA
Map[#[[1]] &, Select[Map[{#, DeleteDuplicates[Partition[Map[#[[1]] &, Split[IntegerDigits[#, 3]]], UpTo[3]]] == {{2, 0, 1}}} &,
Range[1, 3600, 3]], #[[2]] &]] (* A371109 *)
m = Map[{#, IntegerString[#, 3]} &, %];
Map[Last, ToExpression[m]] (* this sequence *)
(* Peter J. C. Moses, Mar 06 2024 *)
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Mar 31 2024
STATUS
approved