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 A190022 #19 Feb 16 2025 08:33:14 %S A190022 0,0,2,12,39,95,193,355,597,943,1426,2071,2904,3977,5306,6956,8963, %T A190022 11370,14225,17587,21515,26053,31310,37282,44061,51785,60436,70127, %U A190022 80939,92952,106267,120982,137124,154841,174225,195366,218394,243457,270505,299749,331441 %N A190022 Number of obtuse triangles, distinct up to congruence, on an n X n grid (or geoboard). %H A190022 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/Geoboard.html">Geoboard</a>. %H A190022 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/ObtuseTriangle.html">Obtuse Triangle</a>. %F A190022 a(n) = A028419(n) - A190021(n) - A189979(n). %e A190022 For n = 3 the two obtuse triangles are: %e A190022 *.. *.. %e A190022 *.. *.. %e A190022 .*. ..* %p A190022 Triangles:=proc(n) local TriangleSet, i, j, k, l, A, B, C; TriangleSet:={}: for i from 0 to n do for j from 0 to n do for k from 0 to n do for l from 0 to n do A:=i^2+j^2: B:=k^2+l^2: C:=(i-k)^2+(j-l)^2: if A^2+B^2+C^2<>2*(A*B+B*C+C*A) then TriangleSet:={op(TriangleSet), sort([sqrt(A), sqrt(B), sqrt(C)])}: fi: od: od: od: od: return(TriangleSet); end: %p A190022 IsObtuseTriangle:=proc(T) if T[1]^2+T[2]^2<T[3]^2 or T[1]^2+T[3]^2<T[2]^2 or T[2]^2+T[3]^2<T[1]^2 then true else false fi: end: %p A190022 a:=proc(n) local TriangleSet,ObtuseTriangleSet,i; TriangleSet:=Triangles(n): ObtuseTriangleSet:={}: for i from 1 to nops(TriangleSet) do if IsObtuseTriangle(TriangleSet[i]) then ObtuseTriangleSet:={op(ObtuseTriangleSet),TriangleSet[i]} fi: od: return(nops(ObtuseTriangleSet)); end: %Y A190022 Cf. A028419, A189979, A190021. %Y A190022 Cf. A103428. %K A190022 nonn %O A190022 1,3 %A A190022 _Martin Renner_, May 04 2011 %E A190022 a(21)-a(40) from _Martin Renner_, May 08 2011