OFFSET
2,1
COMMENTS
See A368946 for the description of the MIU formal system.
A string S can be derived in the MIU formal system if and only if S contains just one M (as its first character) and an arbitrary number of I and U characters, where the number of I characters is not divisible by 3 (see Wikipedia link).
Strings are encoded using the map M -> 3, I -> 1 and U -> 0, and then sorted.
Row n has length A024495(n).
REFERENCES
Douglas R. Hofstadter, Gödel, Escher, Bach: an Eternal Golden Braid, Basic Books, 1979, pp. 33-41 and pp. 261-262.
LINKS
Paolo Xausa, Table of n, a(n) for n = 2..10922 (rows 2..14 of the triangle, flattened).
Wikipedia, MU Puzzle.
EXAMPLE
Triangle begins:
[2] 31;
[3] 301 310 311;
[4] 3001 3010 3011 3100 3101 3110;
[5] 30001 30010 30011 30100 30101 30110 31000 31001 31010 31100 31111;
...
MATHEMATICA
A369173row[n_] := Map[FromDigits[Join[{3}, #]]&, Select[Tuples[{0, 1}, n - 1], !Divisible[Count[#, 1], 3]&]]; Array[A369173row, 5, 2]
CROSSREFS
KEYWORD
nonn,tabf,easy
AUTHOR
Paolo Xausa, Jan 15 2024
STATUS
approved