OFFSET
2,1
LINKS
Sean A. Irvine, Java program (github)
EXAMPLE
Begins:
row triangle positions of 2's
2 12(1) -> 2;
3 121(12) -> 2;
4 1211(212) -> 2;
5 12112(121) -> 2, 5;
6 121121(2112) -> 2, 5;
7 1211212(1121) -> 2, 5, 7;
8 12112121(12112) -> 2, 5, 7;
9 121121211(211212) -> 2, 5, 7;
10 1211212112(112121) -> 2, 5, 7, 10;
at each row we expand one more symbol and report the positions of 2 that are <= row number.
MATHEMATICA
s[1] = {1, 2}; s[2] = {1};; t[a_] := Flatten[s /@ a]; p[0] = {1}; p[1] = t[p[0]]; p[n_] := t[p[n - 1]] a = Table[Flatten[Table[If[p[i][[j]] == 2, j, {}], {j, 1, i}]], {i, 1, 20}]
CROSSREFS
KEYWORD
nonn,tabf,changed
AUTHOR
Roger L. Bagula, Jun 09 2005
EXTENSIONS
Edited by Sean A. Irvine, Jun 23 2026
STATUS
approved
