This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A344836 #12 May 31 2021 02:10:53 %S A344836 0,1,1,2,0,2,3,0,0,3,4,1,0,1,4,5,0,1,1,0,5,6,1,0,0,0,1,6,7,2,1,2,2,1, %T A344836 2,7,8,3,2,3,0,3,2,3,8,9,0,3,0,1,1,0,3,0,9,10,1,0,1,2,0,2,1,0,1,10,11, %U A344836 2,1,4,3,3,3,3,4,1,2,11,12,3,2,5,0,2,0,2,0,5,2,3,12 %N A344836 Square array T(n, k), n, k >= 0, read by antidiagonals; T(n, k) = (n * 2^max(0, w(k)-w(n))) XOR (k * 2^max(0, w(n)-w(k))) (where XOR denotes the bitwise XOR operator and w = A070939). %C A344836 In other words, we right pad the binary expansion of the lesser of n and k with zeros (provided it is positive) so that both numbers have the same number of binary digits, and then apply the bitwise XOR operator. %H A344836 Rémy Sigrist, <a href="/A344836/b344836.txt">Table of n, a(n) for n = 0..10010</a> %H A344836 Rémy Sigrist, <a href="/A344836/a344836.png">Colored representation of the table for n, k < 2^10</a> %F A344836 T(n, k) = T(k, n). %F A344836 T(n, n) = 0. %F A344836 T(n, 0) = n. %F A344836 T(n, 1) = A053645(n) for any n > 0. %e A344836 Array T(n, k) begins: %e A344836 n\k| 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 %e A344836 ---+------------------------------------------------------- %e A344836 0| 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 %e A344836 1| 1 0 0 1 0 1 2 3 0 1 2 3 4 5 6 7 %e A344836 2| 2 0 0 1 0 1 2 3 0 1 2 3 4 5 6 7 %e A344836 3| 3 1 1 0 2 3 0 1 4 5 6 7 0 1 2 3 %e A344836 4| 4 0 0 2 0 1 2 3 0 1 2 3 4 5 6 7 %e A344836 5| 5 1 1 3 1 0 3 2 2 3 0 1 6 7 4 5 %e A344836 6| 6 2 2 0 2 3 0 1 4 5 6 7 0 1 2 3 %e A344836 7| 7 3 3 1 3 2 1 0 6 7 4 5 2 3 0 1 %e A344836 8| 8 0 0 4 0 2 4 6 0 1 2 3 4 5 6 7 %e A344836 9| 9 1 1 5 1 3 5 7 1 0 3 2 5 4 7 6 %e A344836 10| 10 2 2 6 2 0 6 4 2 3 0 1 6 7 4 5 %e A344836 11| 11 3 3 7 3 1 7 5 3 2 1 0 7 6 5 4 %e A344836 12| 12 4 4 0 4 6 0 2 4 5 6 7 0 1 2 3 %e A344836 13| 13 5 5 1 5 7 1 3 5 4 7 6 1 0 3 2 %e A344836 14| 14 6 6 2 6 4 2 0 6 7 4 5 2 3 0 1 %e A344836 15| 15 7 7 3 7 5 3 1 7 6 5 4 3 2 1 0 %o A344836 (PARI) T(n, k, op=bitxor, w=m->#binary(m)) = { op(n*2^max(0, w(k)-w(n)), k*2^max(0, w(n)-w(k))) } %Y A344836 Cf. A003987, A053645, A070939. %Y A344836 Cf. A344834 (AND), A344835 (OR), A344837 (min), A344838 (max), A344839 (absolute difference). %K A344836 nonn,base,tabl %O A344836 0,4 %A A344836 _Rémy Sigrist_, May 29 2021