|
|
|
|
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
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
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;
...
|
|
PROG
|
(PARI) T(n, k)=(n%k==0 && n/k%2) || ((n-1)%k==0 && (n-1)/k%2) \\ Andrew Howroyd, Aug 10 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
EXTENSIONS
|
Duplicate a(35) removed and terms a(56) and beyond from Andrew Howroyd, Aug 10 2018
|
|
STATUS
|
approved
|
|
|
|