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 A300288 #21 Nov 10 2023 10:39:46 %S A300288 0,0,0,-3,0,3,0,0,-6,-5,-3,0,3,5,6,0,0,-9,-7,-6,-3,0,3,6,7,9,0,-10,-5, %T A300288 0,5,10,-12,-9,-6,-3,0,3,6,9,12,0,0,-15,-12,-11,-9,-6,-3,0,3,6,9,11, %U A300288 12,15,-15,-14,-10,-7,-5,0,5,7,10,14,15,0,-18,-15,-13,-12,-9,-6,-3,0,3,6,9,12,13,15,18,0 %N A300288 Irregular triangle read by rows: row n lists the numbers k such that -n <= k <= n and gcd(k, 2*n+1) != 1. %C A300288 Row n contains 2*n+1 - phi(2*n+1) = A053193(n) terms. Row n has just one term (namely 0) if 2*n+1 is prime. %H A300288 Paolo Xausa, <a href="/A300288/b300288.txt">Table of n, a(n) for n = 1..11968</a> (rows 1..250 of the triangle, flattened) %F A300288 T(n,k) = A299714(n,k) - n. %e A300288 Triangle starts: %e A300288 [01]: 0, %e A300288 [02]: 0, %e A300288 [03]: 0, %e A300288 [04]: -3, 0, 3, %e A300288 [05]: 0, %e A300288 [06]: 0, %e A300288 [07]: -6, -5, -3, 0, 3, 5, 6, %e A300288 [08]: 0, %e A300288 [09]: 0, %e A300288 [10]: -9, -7, -6, -3, 0, 3, 6, 7, 9, %e A300288 [11]: 0, %e A300288 [12]: -10, -5, 0, 5, 10, %e A300288 [13]: -12, -9, -6, -3, 0, 3, 6, 9, 12, %e A300288 [14]: 0, %e A300288 [15]: 0, %e A300288 [16]: -15, -12, -11, -9, -6, -3, 0, 3, 6, 9, 11, 12, 15, %e A300288 [17]: -15, -14, -10, -7, -5, 0, 5, 7, 10, 14, 15, %e A300288 [18]: 0, %e A300288 [19]: -18, -15, -13, -12, -9, -6, -3, 0, 3, 6, 9, 12, 13, 15, 18, %e A300288 [20]: 0, %e A300288 ... %t A300288 A300288row[n_]:=With[{q=2n+1},If[PrimeQ[q],{0},Select[Range[-n, n],GCD[#, q]!=1&]]];Array[A300288row,20] (* _Paolo Xausa_, Nov 10 2023 *) %o A300288 (PARI) is(n, k)= ( gcd(k, 2*n+1)!=1 ); %o A300288 for (n=1, 33, for (k=-n, +n, if (is(n, k), print1(k, ", ") ); ); ); %Y A300288 Cf. A053193, A299714. %K A300288 sign,tabf %O A300288 1,4 %A A300288 _Joerg Arndt_, Mar 02 2018