|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
a(n) is a multiple of 3 for every n.
|
|
LINKS
|
|
|
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 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|