login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Sequence in context: A160496 A105663 A318319 * A021755 A272295 A164984
KEYWORD
nonn,tabf
AUTHOR
Rémy Sigrist, Nov 22 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 11:39 EDT 2024. Contains 371969 sequences. (Running on oeis4.)