|
|
A321785
|
|
Triangle T(n, k) read by rows, n > 0 and 0 < k <= 3^(n-1): T(n, k) = sqrt(A321769(n, k)^2 - A321768(n, k)^2).
|
|
3
|
|
|
1, 1, 3, 3, 1, 5, 5, 3, 7, 7, 3, 5, 5, 1, 7, 7, 5, 11, 11, 5, 9, 9, 3, 13, 13, 7, 17, 17, 7, 11, 11, 3, 11, 11, 5, 13, 13, 5, 7, 7, 1, 9, 9, 7, 15, 15, 7, 13, 13, 5, 21, 21, 11, 27, 27, 11, 17, 17, 5, 19, 19, 9, 23, 23, 9, 13, 13, 3, 19, 19, 13, 29, 29, 13, 23
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
This sequence and A321784 are related to a parametrization of the primitive Pythagorean triples in the tree described in A321768.
|
|
LINKS
|
|
|
FORMULA
|
Empirically:
- T(n, 1) = 1,
- T(n, (3^(n-1) + 1)/2) = A001333(n),
- T(n, 3^(n-1)) = 2*n - 1.
|
|
EXAMPLE
|
The first rows are:
1
1, 3, 3
1, 5, 5, 3, 7, 7, 3, 5, 5
|
|
PROG
|
(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 (sqrtint(t[3, 1] - t[2, 1]))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,tabf
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|