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 A141666 #11 Feb 16 2025 08:33:08 %S A141666 1,4,4,4,16,4,0,16,16,0,4,0,16,0,4,8,16,0,0,16,8,0,32,16,0,16,32,0,0, %T A141666 0,32,0,0,32,0,0,4,0,0,0,16,0,0,0,4,4,16,0,0,32,32,0,0,16,4,8,16,16,0, %U A141666 0,64,0,0,16,16,8 %N A141666 A symmetrical triangle of coefficients based on A004018 (or number of ways of writing n as a sum of 2 squares): t(n,m) = r2(n-m+1)*r2(m+1). %C A141666 Row sums are {1, 8, 24, 32, 24, 48, 96, 64, 24, 104, 144}. %D A141666 G. E. Andrews, Number Theory, 1971, Dover Publications New York, p. 44, p. 201-207. %H A141666 G. C. Greubel, <a href="/A141666/b141666.txt">Rows n = 0..100 of triangle, flattened</a> %H A141666 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/SumofSquaresFunction.html">Sum of Squares Function</a> %F A141666 t(n,m) = r2(n-m+1)*r2(m+1). %e A141666 Triangle begins %e A141666 {1}, %e A141666 {4, 4}, %e A141666 {4, 16, 4}, %e A141666 {0, 16, 16, 0}, %e A141666 {4, 0, 16, 0, 4}, %e A141666 {8, 16, 0, 0, 16, 8}, %e A141666 {0, 32, 16, 0, 16, 32, 0}, %e A141666 {0, 0, 32, 0, 0, 32, 0, 0}, %e A141666 {4, 0, 0, 0, 16, 0, 0, 0, 4}, %e A141666 {4, 16, 0, 0, 32, 32, 0, 0, 16, 4}, %e A141666 {8, 16, 16, 0, 0, 64, 0, 0, 16, 16, 8} %t A141666 Clear[a]; a = CoefficientList[Series[1 + 4*Sum[(-1)^(1 + n)/(-1 + x^(1 - 2*n)), {n, 100}], {x, 0, 100}], x]; Table[Table[a[[n - m + 1]]*a[[m + 1]], {m, 0, n}], {n, 0, 10}]//Flatten %Y A141666 Cf. A004018. %K A141666 nonn,tabl %O A141666 0,2 %A A141666 _Roger L. Bagula_ and _Gary W. Adamson_, Sep 05 2008