cp's OEIS Frontend

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.

A051585 Number of integer-sided triangles of area 6n.

This page as a plain text file.
%I A051585 #9 Nov 03 2019 17:12:02
%S A051585 1,2,0,2,1,2,1,2,1,4,1,1,0,4,2,2,0,2,1,4,3,1,0,2,1,2,0,4,0,2,0,2,1,1,
%T A051585 6,3,0,0,1,5,0,3,0,3,2,0,0,2,1,4,1,0,0,2,4,8,0,0,0,5,0,0,1,2,1,3,0,1,
%U A051585 0,15,0,2,0,0,0,4,2,1,0,5,1,0,0,6,2,0,1,3,0,4,3,0,0,0,1,2,0,2,1,2,0,0,0
%N A051585 Number of integer-sided triangles of area 6n.
%C A051585 If integer-sided triangle has integer area, area is divisible by 6.
%H A051585 Giovanni Resta, <a href="/A051585/b051585.txt">Table of n, a(n) for n = 1..10000</a>
%o A051585 (PARI) a(n)=sum(z=sqrtint(sqrtint(192*n^2)-1)+1,sqrtint(9*(64*n^2+5)\20), sum(y=z\2+1,z, my(t=(y*z)^2-(12*n)^2,x); if(issquare(t,&t), (issquare(y^2+z^2-2*t,&x) && x<=y) + (t && issquare(y^2+z^2+2*t,&x) && x<=y), 0))) \\ _Charles R Greathouse IV_, Jun 27 2013
%Y A051585 Cf. A051584, A051586.
%K A051585 nonn
%O A051585 1,2
%A A051585 _David W. Wilson_