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.

A156686 The ordered set of a + b - c as (a,b,c) runs through all Pythagorean triples with a

Original entry on oeis.org

2, 4, 4, 6, 6, 6, 8, 8, 8, 10, 10, 10, 12, 12, 12, 12, 12, 12, 14, 14, 14, 16, 16, 16, 16, 18, 18, 18, 18, 18, 20, 20, 20, 20, 20, 20, 22, 22, 22, 24, 24, 24, 24, 24, 24, 24, 24, 24, 26, 26, 26, 28, 28, 28, 28, 28, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30
Offset: 1

Views

Author

Ant King, Feb 18 2009

Keywords

Comments

Also called the excess of a Pythagorean triangle, and is equal to the diameter of its incircle. All members of this sequence are even, and the corresponding sequence for primitive triangles only is A020887.

Examples

			The smallest excess in any Pythagorean triangle is 2, which occurs in (3,4,5) because 3+4-5=2. Hence a(1)=2.
		

Crossrefs

Cf. A020887.

Programs

  • Mathematica
    data1=Reduce[ a^2+b^2==c^2 && a+b-c==# && 0