#Pythagoreans

  • a = 2n+1
    • b = 2n^2+2n
    • c = 2n^2+2n+1
  • A=4n+4
    • B=4n^2+8n+3
    • C=4n^2+8n+5
Each of these algorithms create some leg of a right triangle; 'a' and 'A' are the shortest leg.

These algorithms will hit every single odd number (2n+1), and 50% of even numbers (4n+4) as the shortest leg of a right triangle; if memory serves me, there's another 25% of even numbers once you generate all the values for a given time.

We're dealing with a^2+b^2=c^2 - we have some more assumptions we can make about the types of numbers that will work... there are 7 symmetric equivalents of 'a' ('A'), 'b' ('B'), and they all share the same 'c' ('C') value - its basically what is held constant.

There are eight primitive Pythagorean triples for each 'abc' and 'ABC'; you can study the eight patterns from this snippet of code:
For all eight combinations that all have the same 'c' value; each of those is also a function - an algorithm (if you took the time to convert it)... 
Eight triangles for 'abc'...and eight triangles for 'ABC'... all 16 will go through these transformations, yielding more right triangles.  Everything is a right triangle, you can use the javascript example to see them all.
There are a lot of right triangles at any given time; a whole lot.
T3 = next T0.

This is just a giant explosion of more right triangles, but we do not run them further through any calculations beyond this - its already a lot of information; it is just put into its proper location for the function it represents.  More explanation for the transforms can be found here.  

My javascript example: https://www.assassinatekeene.org/2023/10/universe-of-integerprimitive.html ... you can just drop this into a webpage, mostly.  You do need some very minor knowledge of javascript.

It's a timeline. negative infinity to positive infinity; even at t=0... you will get triangles... just generate the timeline... or just the point in time.  It also ... is basically just a timeline of odd numbers*...; don't worry about it if you don't want to.  From any given time... you will bump into the values for the t+1... they are the last pieces of data... before you'd need to ask for t+1... but it gives you a reference to part of the data, before you go.

From any n^2... you can find the previous or next square with 2n+1... add or subtract it from n^2.  Similarly... from any n^2... you can find the (n-2)^2 or (n+2)^2 adding or subtracting 4n+4.

*The sum of odd numbers is n^2; where n is the number of odd numbers you have gone through.  Again, its not important, unless you want it to be.

Here is how I approached accessing the triangles... first of all, they are rather deep into a matrix; you can name each array however you like... once you go "this deep" into the matrix... there is an array holding the actual right triangle owned by this 'point in time'.

    [odd][ab][quadrant][prime][turn][side] //console.log at this depth to actually see triangles.


Instead of the matrix holding number values... you could make a 'master' copy of this data structure (matrix)... and instead of populating it with numbers... populate it with the function that the number there would represent.  All of these numbers have functions that you can identify, if that's what you are after.

You can also take any constant... and break it down based on ... (2n-1)//alpha; (2n)//beta; (2n+1)//gamma; (4n)//delta... at least... I did.


Comments