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.

A370760 Table read by rows: row n is the unique primitive Pythagorean triple (a,b,c) such that a = prime(n).

Original entry on oeis.org

3, 4, 5, 5, 12, 13, 7, 24, 25, 11, 60, 61, 13, 84, 85, 17, 144, 145, 19, 180, 181, 23, 264, 265, 29, 420, 421, 31, 480, 481, 37, 684, 685, 41, 840, 841, 43, 924, 925, 47, 1104, 1105, 53, 1404, 1405, 59, 1740, 1741, 61, 1860, 1861, 67, 2244
Offset: 2

Views

Author

Keywords

Comments

See Corolario 5.2.3 of the reference.

Examples

			Table begins:
  n=2:   3,   4,   5;
  n=3:   5,  12,  13;
  n=4:   7,  24,  25;
  n=5:  11,  60,  61;
  n=6:  13,  84,  85;
  ...
		

References

  • Miguel Ángel Pérez García-Ortega, José Manuel Sánchez Muñoz and José Miguel Blanco Casado, El Libro de las Ternas Pitagóricas, Preprint 2024.

Crossrefs

Cf. A000040, A065091 (short leg), A216244 (long leg), A066885 (hypotenuse), A005097 (inradius).

Programs

  • Mathematica
    Apply[Join, Map[{#,(#^2-1)/2,(#^2+1)/2}&,Prime[Range[2,31]]]]

Formula

Row n = (a, b, c) = (p, ( p^2 - 1 ) / 2, ( p^2 + 1 ) / 2), where p = prime(n) = A000040(n).