A129573 A097806 * A129372.
1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1
Offset: 1
Examples
First few rows of the triangle are: 1; 1, 1; 1, 1, 1; 1, 0, 1, 1; 1, 0, 0, 1, 1; 1, 1, 0, 0, 1, 1; 1, 1, 0, 0, 0, 1, 1; 1, 0, 0, 0, 0, 0, 1, 1; ...
Links
- Andrew Howroyd, Table of n, a(n) for n = 1..1275 (rows 1..50)
Programs
-
PARI
T(n,k)=(n%k==0 && n/k%2) || ((n-1)%k==0 && (n-1)/k%2) \\ Andrew Howroyd, Aug 10 2018
Extensions
Duplicate a(35) removed and terms a(56) and beyond from Andrew Howroyd, Aug 10 2018