Hearted Youtube comments on Mathologer (@Mathologer) channel.
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
11:48
The box for 153^2 + 104^2 = 185^2 is
9 4
17 13.
The upper two number can be calculated via: b = sqrt((z - x) / 2), a = sqrt((z + x) / 2) - b, where x^2+y^2=z^2.
Then c = a+2b, d=a+b, in the form of:
a b
c d.
The path there is: right right right left
The algorithm to find the path to a given pythagorean triple in the tree: (x^2+y^2=z^2 , x,y,z ∈ N
(0) Reduce triple to primitive triple by dividing by their greatest common divisor gcd(x, y, z)
x = x / gcd(x, y, z)
y = y / gcd(x, y, z)
z = z / gcd(x, y, z)
(1) let a, b:
b = sqrt((z - x) / 2), a = sqrt((z + x) / 2) - b
if a is even or either of them is not an integer or either of them is 0, repeat the calculation with y instead of x!
(2) Calculate the Category of a and b:
C: N^2\{1,1} -> N
C(a,b) = 2 - floor(2 / ceil(2 * b / a)) for a != 1 or b != 1
if C(a, b) is undefined, jump to step (6)
(3) Save C(a, b) in memory
(4) Calculate a' and b'
let c = C(a, b)
{ a-2b for c = 0
a' = { 2b-a for c = 1
{ a for c = 2
{ b for c = 0
b' = { a-b for c = 1
{ b-a for c = 2
(5) Repeat from (2) with a = a' and b = b' as long as a != b and a * b != 0
(6) Read the saved C(a, b) from (3) in reverse order
0 corresponds to going left,
1 corresponds to going straigt,
2 corresponds to going right!
DONE!
Example code and Algorithm here:
https://pastebin.com/T71NP8Z9
JS-Applet here:
https://jsfiddle.net/ptu6f5cr/4/
5
-
5
-
Herr Dr Polster: That was lovely. My chemistry teacher was like you, so I became a chemist. My maths teachers were terrible; but I like (love?) math anyway. I did have the calculus, some algebra which included Power series (which I never got), some differentials, partials, numerical methods, and so on. But I never got power Series at all until I just watched the Power Series Master Class. I got through all of it in two nights; I will have to watch it again and get out a pencil and paper to get more (Erdos: "if your fingers don't hurt, you're not working enough"). I got most of it, except the animation at the end, and I'm sure I must have missed something as I'm not that smart. But, thank you so much!
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5
-
5