%I #16 Jan 07 2024 16:25:12
%S 1,0,1,1,1,1,0,0,1,1,1,0,1,1,1,0,1,0,1,1,1,1,1,0,1,1,1,1,0,0,0,0,1,1,
%T 1,1,1,0,1,0,1,1,1,1,1,0,1,1,0,0,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,0,0,
%U 0,1,0,0,1,1,1,1,1,1,1,0,0,1,0,0,1,1,1
%N Triangle read by rows: The k-th column has alternating blocks of k 1's followed by k 0's (see example).
%C This is A010766 read mod 2. - _Antti Karttunen_, Oct 10 2018
%H Andrew Howroyd, <a href="/A319102/b319102.txt">Table of n, a(n) for n = 1..1275</a> (rows 1..50)
%F T(n,k) = floor(n/k) mod 2. - _Andrew Howroyd_, Sep 12 2018
%e The triangle begins:
%e n\k 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ...
%e 1: 1
%e 2: 0 1
%e 3: 1 1 1
%e 4: 0 0 1 1
%e 5: 1 0 1 1 1
%e 6: 0 1 0 1 1 1
%e 7: 1 1 0 1 1 1 1
%e 8: 0 0 0 0 1 1 1 1
%e 9: 1 0 1 0 1 1 1 1 1
%e 10: 0 1 1 0 0 1 1 1 1 1
%e 11: 1 1 1 0 0 1 1 1 1 1 1
%e 12: 0 0 0 1 0 0 1 1 1 1 1 1
%e 13: 1 0 0 1 0 0 1 1 1 1 1 1 1
%e 14: 0 1 0 1 0 0 0 1 1 1 1 1 1 1
%e 15: 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1
%e ...
%o (PARI) T(n,k)=n\k%2; \\ _Andrew Howroyd_, Sep 12 2018
%Y Cf. A010766.
%K nonn,tabl
%O 1
%A _Kritsada Moomuang_, Sep 10 2018
|