login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A371112
Integers whose ternary representation consists of concatenated runs C(1)A(1)B(1)C(2)A(2)B(2)...C(k)A(k)B(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
21, 63, 66, 75, 189, 198, 201, 225, 228, 237, 567, 588, 594, 603, 606, 675, 684, 687, 711, 714, 723, 1701, 1722, 1764, 1767, 1776, 1782, 1803, 1809, 1818, 1821, 2025, 2046, 2052, 2061, 2064, 2133, 2142, 2145, 2169, 2172, 2181
OFFSET
1,1
COMMENTS
a(n) is a multiple of 3 for every n.
MATHEMATICA
Map[#[[1]] &, Select[Map[{#, DeleteDuplicates[Partition[Map[#[[1]] &, Split[IntegerDigits[#, 3]]], UpTo[3]]] == {{2, 1, 0}}} &,
Range[3, 3600, 3]], #[[2]] &]] (* A371111 *)
m = Map[{#, IntegerString[#, 3]} &, %];
Map[Last, ToExpression[m]] (* this sequence *)
(* Peter J. C. Moses, Mar 06 2024 *)
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Apr 04 2024
STATUS
approved

  NODES
COMMUNITY 1
INTERN 1