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 A276669 #60 Dec 26 2018 03:38:09 %S A276669 0,1,0,2,1,2,0,3,4,2,1,3,0,4,6,5,2,3,1,4,0,5,8,6,7,3,2,4,1,5,0,6,10,7, %T A276669 9,8,3,4,2,5,1,6,0,7,12,8,11,9,10,4,3,5,2,6,1,7,0,8,14,9,13,10,12,11, %U A276669 4,5,3,6,2,7,1,8,0,9,16,10,15,11,14,12,13,5,4,6,3,7,2,8,1,9,0,10,18,11,17,12,16,13,15,14 %N A276669 Triangle read by rows T(n,k) in which row n lists the first 2n-1 nonnegative integers representing 2n-1 equidistant points labeled in counterclockwise direction around a circle, with the 0th point at the top and reading them from left to right. %H A276669 James Bentley, <a href="/A276669/b276669.txt">Rows 0...405 flattened</a> %e A276669 Triangle begins: %e A276669 0; %e A276669 1, 0, 2; %e A276669 1, 2, 0, 3, 4; %e A276669 2, 1, 3, 0, 4, 6, 5; %e A276669 2, 3, 1, 4, 0, 5, 8, 6, 7; %e A276669 3, 2, 4, 1, 5, 0, 6, 10, 7, 9, 8; %e A276669 3, 4, 2, 5, 1, 6, 0, 7, 12, 8, 11, 9, 10; %e A276669 4, 3, 5, 2, 6, 1, 7, 0, 8, 14, 9, 13, 10, 12, 11; %e A276669 4, 5, 3, 6, 2, 7, 1, 8, 0, 9, 16, 10, 15, 11, 14, 12, 13; %e A276669 5, 4, 6, 3, 7, 2, 8, 1, 9, 0, 10, 18, 11, 17, 12, 16, 13, 15, 14; %e A276669 ... %e A276669 Illustration of numbers around a circle associated to the fourth row of triangle: %e A276669 . %e A276669 . 0 %e A276669 . 1 6 %e A276669 . %e A276669 . 2 5 %e A276669 . %e A276669 . 3 4 %e A276669 . %e A276669 So the 4th row of the triangle is [2, 1, 3, 0, 4, 6, 5]. %t A276669 f[n_] := Transpose[ Sort[ Table[{Sin[ 2i*Pi/n + Pi], i}, {i, 0, n -1}], #1[[1]] < #2[[1]] &]][[2]]; Table[ f[n], {n, 1, 19, 2}] // Flatten (* _Robert G. Wilson v_, Nov 18 2016 *) (* Changing the constant in the Mmca coding changes where the reading begins. Pi starts it at the 9 o'clock position, Pi/2 would start it at the 12 o'clock position, 0 would have it start at the 3 o'clock position, etc. *) %Y A276669 Column 1 is A110654. Middle diagonal is A000004. Apart from the first term, right border gives A001651. %Y A276669 Cf. A001477, A004526. %K A276669 nonn,tabf,look %O A276669 1,4 %A A276669 _James Bentley_ and _Omar E. Pol_, Sep 12 2016