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.

A261654 Lead almost-Pythagorean triples generated by primitive Pythagorean triples of the form (2i-1, 2i^2-2i, 2i^2-2i+1), i >= 2.

Original entry on oeis.org

4, 7, 8, 6, 17, 18, 8, 31, 32, 10, 49, 50, 12, 71, 72, 14, 97, 98, 16, 127, 128, 18, 161, 162, 20, 199, 200, 22, 241, 242, 24, 287, 288, 26, 337, 338, 28, 391, 392, 30, 449, 450, 32, 511, 512, 34, 577, 578
Offset: 1

Views

Author

John Rafael M. Antalan, Aug 30 2015

Keywords

Comments

A set of ordered triple (x,y,z) that satisfies the equation x^2 + y^2 = z^2 + 1 is called an almost-Pythagorean triple (APT).
The triples (x,y,z)=[(2i-1)k+1,(2i^2-2i)k+(2i-1),(2i^2-2i+1)k+(2i-1)] and (x',y',z')=[(2i-1)k+(2i-2),(2i^2-2i)k+(2i^2-4i+1),(2i^2-2i+1)k+(2i^2-4i+2)] are APTs for all integers k and i >= 2.
Note that in terms of components, (x,y,z) < (x',y',z').
Setting k=1 in the first expression gives the terms of this sequence.

Examples

			When k=1 and i=2 the formula for (x,y,z) gives the Lead APT (4,7,8).
First rows are:
   4,  7,  8;
   6, 17, 18;
   8, 31, 32;
  10, 49, 50;
  12, 71, 72;
  14, 97, 98;
  ...
		

Crossrefs

For the 3 columns, cf. A005843, A056220, A001105.

Programs

  • Mathematica
    xyz[i_] := {2i, 2i^2-1, 2i^2};
    Array[xyz, 16, 2] // Flatten (* Jean-François Alcover, Feb 02 2019 *)
  • PARI
    tabf(nn) = for (i=2, nn, print(2*i, ", ", 2*i^2-1, ", ", 2*i^2)); \\ Michel Marcus, Aug 31 2015

Formula

(x,y,z) = [(2i-1)k+1,(2i^2-2i)k+(2i-1),(2i^2-2i+1)k+(2i-1)], with i>=2 and k=1.