OFFSET
0,4
COMMENTS
For n>0, the n-th row and the differences of the n-th column have period 2^floor(log_(n)+1).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10010
Rémy Sigrist, Colored representation of the table for n, k < 2^10 (the color at (x, y) is function of T(x, y))
FORMULA
T(x, y) = x AND NOT y. The AND NOT operation satisfies the bitwise truth table: (0, 0) = 0, (0, 1) = 0, (1, 0) = 1, (1, 1) = 0.
EXAMPLE
0,0,0,0,0,0,
1,0,1,0,1,0,
2,2,0,0,2,2,
3,2,1,0,3,2,
4,4,4,4,0,0,
5,4,5,4,1,0,
MATHEMATICA
Table[BitAnd[x - y, BitNot[y]], {x, 0, 15}, {y, 0, x}] (* Paolo Xausa, Sep 30 2024 *)
PROG
(PARI) T(x, y)=bitnegimply(x, y)
CROSSREFS
KEYWORD
AUTHOR
Ralf Stephan, Sep 26 2004
STATUS
approved