A321769 Consider the tree of triples P(n, k) with n > 0 and 0 < k <= 3^(n-1), such that P(1, 1) = [3; 4; 5] and each triple t on some row branches to the triples A*t, B*t, C*t on the next row (with A = [1, -2, 2; 2, -1, 2; 2, -2, 3], B = [1, 2, 2; 2, 1, 2; 2, 2, 3] and C = [-1, 2, 2; -2, 1, 2; -2, 2, 3]); T(n, k) is the second component of P(n, k).
4, 12, 20, 8, 24, 48, 28, 80, 120, 36, 56, 72, 12, 40, 88, 60, 208, 304, 84, 168, 224, 44, 176, 336, 180, 456, 696, 220, 288, 360, 52, 140, 252, 120, 252, 396, 136, 132, 156, 16, 60, 140, 104, 396, 572, 152, 340, 460, 96, 468, 884, 464, 1140, 1748, 560, 700
Offset: 1
Examples
The first rows are: 4 12, 20, 8 24, 48, 28, 80, 120, 36, 56, 72, 12
Links
- Rémy Sigrist, Rows n = 1..9, flattened
- Wikipedia, Tree of primitive Pythagorean triples
- Index entries related to Pythagorean Triples
Programs
-
PARI
M = [[1, -2, 2; 2, -1, 2; 2, -2, 3], [1, 2, 2; 2, 1, 2; 2, 2, 3], [-1, 2, 2; -2, 1, 2; -2, 2, 3]]; T(n, k) = my (t=[3; 4; 5], d=digits(3^(n-1)+k-1, 3)); for (i=2, #d, t = M[d[i]+1] * t); return (t[2, 1])
Comments