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 A221146 #30 Mar 14 2024 04:51:26 %S A221146 0,0,0,0,2,0,0,0,0,0,0,2,4,2,0,0,0,4,4,0,0,0,2,0,6,0,2,0,0,0,0,0,0,0, %T A221146 0,0,0,2,4,2,8,2,4,2,0,0,0,4,4,8,8,4,4,0,0,0,2,0,6,8,10,8,6,0,2,0,0,0, %U A221146 0,0,8,8,8,8,0,0,0,0,0,2,4,2,0,10,12,10,0,2,4,2,0 %N A221146 Table read by antidiagonals: (m+n) - (m XOR n). %C A221146 Equals twice A004198. %C A221146 This sequence is related to two fractals: the Sierpinski gasket fractal and Peano filigree. %C A221146 For the Sierpinski fractal the procedure is the following: %C A221146 - write the number stored in the position (i,j) as i+j + d, where d stands for difference. %C A221146 The array of the differences is %C A221146 0 0 0 0 %C A221146 0 2 0 2 %C A221146 0 0 4 4 %C A221146 0 2 4 6 %C A221146 If this matrix is represented by colors we obtain the Sierpinski gasket; coordinates (i,j) contain a pixel with the color i XOR j. %C A221146 If we follow the odd and even numbers of the XOR table we obtain the Peano curve. %H A221146 Paolo Xausa, <a href="/A221146/b221146.txt">Table of n, a(n) for n = 0..11324</a> (first 150 antidiagonals, flattened). %e A221146 Table begins: %e A221146 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... %e A221146 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 ... %e A221146 0 0 4 4 0 0 4 4 0 0 4 4 0 0 4 4 ... %e A221146 0 2 4 6 0 2 4 6 0 2 4 6 0 2 4 6 ... %e A221146 0 0 0 0 8 8 8 8 0 0 0 0 8 8 8 8 ... %e A221146 0 2 0 2 8 10 8 10 0 2 0 2 8 10 8 10 ... %e A221146 0 0 4 4 8 8 12 12 0 0 4 4 8 8 12 12 ... %e A221146 0 2 4 6 8 10 12 14 0 2 4 6 8 10 12 14 ... %e A221146 0 0 0 0 0 0 0 0 16 16 16 16 16 16 16 16 ... %e A221146 0 2 0 2 0 2 0 2 16 18 16 18 16 18 16 18 ... %e A221146 0 0 4 4 0 0 4 4 16 16 20 20 16 16 20 20 ... %e A221146 0 2 4 6 0 2 4 6 16 18 20 22 16 18 20 22 ... %e A221146 0 0 0 0 8 8 8 8 16 16 16 16 24 24 24 24 ... %e A221146 0 2 0 2 8 10 8 10 16 18 16 18 24 26 24 26 ... %e A221146 0 0 4 4 8 8 12 12 16 16 20 20 24 24 28 28 ... %e A221146 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 ... %e A221146 ... %t A221146 Table[m-BitXor[n, m-n], {m, 0, 15}, {n, 0, m}] (* _Paolo Xausa_, Mar 14 2024 *) %Y A221146 Cf. A003987, A004198. %K A221146 nonn,tabl,look %O A221146 0,5 %A A221146 _BOCUT Adrian Sebastian_, Dec 12 2012 %E A221146 Edited by _N. J. A. Sloane_, Jan 03 2013