login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A301384 Number of integer-sided triangles of area A188158(n). 2
1, 2, 2, 1, 2, 1, 2, 1, 4, 1, 1, 4, 2, 2, 2, 1, 4, 3, 1, 2, 1, 2, 4, 2, 2, 1, 1, 6, 3, 1, 5, 3, 3, 2, 2, 1, 4, 1, 2, 4, 8, 5, 1, 2, 1, 3, 1, 15, 2, 4, 2, 1, 5, 1, 6, 2, 1, 3, 4, 3, 1, 2, 2, 1, 2, 4, 5, 1, 5, 4, 1, 2, 3, 5, 1, 1, 1, 6, 2, 4, 2, 1, 2, 1, 17, 4, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Nonzero terms of A051584.
LINKS
Eric Weisstein's World of Mathematics, Triangle
EXAMPLE
a(9) = 4 because A188158(9) = 60 corresponding to 4 triangles (a, b, c) = (6, 25, 29), (8, 15, 17), (10, 13, 13) and (13, 13, 24) of area 60.
MAPLE
A301384 := proc(A::integer)
local Asqr, s, a, b, c, sol ;
sol := 0 ;
Asqr := A^2 ;
for s in numtheory[divisors](Asqr) do
if s^2> A then
for a from 1 to s-1 do
if modp(Asqr, s-a) = 0 then
for b from a to s-1 do
c := 2*s-a-b ;
if s*(s-a)*(s-b)*(s-c) = Asqr and c >= b then
sol := sol+1 ;
end if;
end do:
end if;
end do:
end if;
end do:
sol ;
end proc:
for n from 3 to 600 do
a301384 := A301384(n) ;
if a301384 > 0 then
printf("%d, \n", a301384) ;
end if;
end do: # R. J. Mathar, May 02 2018
MATHEMATICA
nn=1000; lst={}; lst2={}; Do[s=(a+b+c)/2; If[IntegerQ[s], area2=s(s-a)(s-b)(s-c); If[0<area2<=nn^2&&IntegerQ[Sqrt[area2]], AppendTo[lst, Sqrt[area2]]]], {a, nn}, {b, a}, {c, b}]; lst1=Sort[lst]; n0=Length[lst]; i=1; Do[If[Part[lst1, t-1]==Part[lst1, t], i=i+1, AppendTo[lst2, i]; i=1], {t, 2, n0}]; lst2
CROSSREFS
Cf. A188158, A024153 (distinct side lengths), A051516, A051584, A051585.
Sequence in context: A279620 A278109 A216665 * A258124 A264032 A366597
KEYWORD
nonn
AUTHOR
Michel Lagneau, Mar 20 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 14 20:49 EDT 2024. Contains 374323 sequences. (Running on oeis4.)