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.

A221838 Number of integer Heron triangles of height n.

Original entry on oeis.org

0, 0, 2, 2, 2, 2, 2, 6, 6, 2, 2, 20, 2, 2, 20, 12, 2, 6, 2, 20, 20, 2, 2, 56, 6, 2, 12, 20, 2, 20, 2, 20, 20, 2, 20, 56, 2, 2, 20, 56, 2, 20, 2, 20, 56, 2, 2, 110, 6, 6, 20, 20, 2, 12, 20, 56, 20, 2, 2, 182, 2, 2, 56, 30, 20, 20, 2, 20, 20, 20, 2, 156, 2, 2
Offset: 1

Views

Author

Eric M. Schmidt, Jan 27 2013

Keywords

Examples

			For n = 3, the two triangles have side lengths (3, 4, 5) and (5, 5, 8), with areas 6 and 12 respectively.
		

Crossrefs

Programs

  • Sage
    def A221838(n) : pyth = (number_of_divisors(n^2 if n%2==1 else (n/2)^2) - 1) // 2; return pyth^2 + pyth

Formula

a(n) = A221837(n) + A046079(n) = A046079(n)^2 + A046079(n).