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.

Showing 1-1 of 1 results.

A384329 Table read by rows: row n is the unique primitive Pythagorean triple (a,b,c) such that (a-b+c)/2 = A000217(n) and its long leg and hypotenuse are consecutive natural numbers, n >= 0.

Original entry on oeis.org

-1, 0, 1, 1, 0, 1, 5, 12, 13, 11, 60, 61, 19, 180, 181, 29, 420, 421, 41, 840, 841, 55, 1512, 1513, 71, 2520, 2521, 89, 3960, 3961, 109, 5940, 5941, 131, 8580, 8581, 155, 12012, 12013, 181, 16380, 16381, 209, 21840, 21841, 239, 28560, 28561, 271, 36720, 36721, 305, 46512, 46513, 341, 58140, 58141
Offset: 0

Views

Author

Keywords

Comments

Row n = 0 and n = 1 are included by convention and correspond to the Pythagorean triples (-1)^2 + 0^2 = 1^2 and 1^2 + 0^2 = 1^2.

Examples

			  n=0:     -1,     0,     1;
  n=1:      1,     0,     1;
  n=2:      5,    12,    13;
  n=3:     11,    60,    61;
  ...
		

Crossrefs

Cf. A000217, A165900 (short leg), A062392 (semiperimeter), A384498 (sum of the legs).

Programs

  • Mathematica
    a=Table[(n(n+1))/2,{n,0,18}];Apply[Join,Map[{2#-1,2#^2-2#,2#^2-2#+1}&,a]]

Formula

row(n) = (2*T(n) - 1, 2*T(n)*(T(n) - 1), 2*T(n)*(T(n) - 1) + 1) where T(n) = A000217(n).
Showing 1-1 of 1 results.