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!)
A221836 Triangle in which m-th term of n-th row is the number of integer Heron triangles with two of the sides having lengths n, m. 2
0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,15
COMMENTS
If the primes divisors of nm congruent to 1 mod 4 have multiplicities e_1, ..., e_r, then a(n, m) <= (3 + (-1)^(nm))/2 * (Product(2*e_j - 1, j = 1..r) - 1).
LINKS
Sourav Sen Gupta, Nirupam Kar, Subhamoy Maitra, Santanu Sarkar, and Pantelimon Stanica, Counting Heron triangles with Constraints, INTEGERS, Electronic J. of Combinatorial Number Theory, Vol. 13, Paper A3, 2013.
Eric Weisstein's World of Mathematics, Heronian Triangle.
EXAMPLE
Triangle begins
0;
0, 0;
0, 0, 0;
0, 0, 1, 0;
0, 0, 1, 1, 2;
0, 0, 0, 0, 1, 0;
0, 0, 0, 0, 0, 0, 0;
0, 0, 0, 0, 1, 1, 0, 0;
0, 0, 0, 0, 0, 0, 0, 0, 0;
0, 0, 0, 0, 0, 1, 0, 1, 1, 2.
PROG
def A221836(n, m) :
....count = 0
....for k in range(abs(n-m)+1, n+m) :
........s = (n + m + k)/2
........Asq = s * (s-n) * (s-m) * (s-k)
........if Asq.is_integral() and Asq.is_square() : count += 1
....return count
end
CROSSREFS
Sequence in context: A019141 A230686 A341001 * A279372 A086077 A178408
KEYWORD
nonn,tabl
AUTHOR
Eric M. Schmidt, Jan 26 2013
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 April 23 13:11 EDT 2024. Contains 371913 sequences. (Running on oeis4.)