login
Triangle read by rows: t(n,m) = 1 - ((prime(n) - prime(m))/2 mod 2).
1

%I #11 Jun 05 2018 22:33:50

%S 1,0,1,1,0,1,1,0,1,1,0,1,0,0,1,0,1,0,0,1,1,1,0,1,1,0,0,1,1,0,1,1,0,0,

%T 1,1,0,1,0,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,1,0,1,0,0,1,1,0,0,1,0

%N Triangle read by rows: t(n,m) = 1 - ((prime(n) - prime(m))/2 mod 2).

%C Row sums are {1, 1, 2, 3, 2, 3, 4, 5, 4, 6, 5, ...}.

%H G. C. Greubel, <a href="/A141687/b141687.txt">Rows n=1..100 of triangle, flattened</a>

%e {1},

%e {0, 1},

%e {1, 0, 1},

%e {1, 0, 1, 1},

%e {0, 1, 0, 0, 1},

%e {0, 1, 0, 0, 1, 1},

%e {1, 0, 1, 1, 0, 0, 1},

%e {1, 0, 1, 1, 0, 0, 1, 1},

%e {0, 1, 0, 0, 1, 1, 0, 0, 1},

%e {1, 0, 1, 1, 0, 0, 1, 1, 0, 1},

%e {0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1}

%t Table[Table[1 - Mod[(Prime[n] - Prime[m])/2, 2], {m, 2, n}], {n, 2, 12}]; Flatten[%]

%K nonn,tabl

%O 1,1

%A _Roger L. Bagula_, _Gary W. Adamson_ and _Mats Granvik_, Sep 09 2008

%E Edited by _N. J. A. Sloane_, Sep 13 2008