I miss you all, triangular anons!
Sorry - I became very busy with work.
I'm trying to catch up a bit, and still trying to understand the triangular number formulas - if anyone has any specific posts they recommend I read first, I'm all ears.
I've been thinking a bit about the relationship between triangles and squares, so here's a list of things I've been thinking about regarding that topic (not sure if my whitespace formatting is going to work as intended):
-
We know that the series of all odd squares are described as 8 triangles + 1. (8T(u) + 1).
series of odd squares:
1, 9, 25, 49, 81, 121, 169, 225, 289, 361
minus 1, divide 8:
0, 1, 3, 6, 10, 15, 21, 28, 36, 45
Interesting to note the parity of the numbers here. Similar to the columns of e.
-
We know that the series of all even squares can be divided by 4.
series of even squares:
0, 4, 16, 36, 64, 100, 144, 196, 256, 324, 400
divide by 4:
0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100
So we have a way to break a square into either a smaller square or a triangular number. I've been thinking about how a triangular number can be expressed as a square, so my own 3 observations (although I think others have already expressed maybe some of these).
-
Any triangular number can be expressed as a square minus the triangle of number -1.
T(u) = u^2 - T(u-1)
I'm not sure if I like this expression, because in algorithmic terms the movement of u is linear.
Conversely, a square can be expressed as the sum of 2 consecutive triangular numbers.
u^2 = T(u) + T(u-1)
-
An even triangle number can be expressed as the largest square that fits under it (u/2) plus 2 smaller triangles of size (u/2).
T(u) = (u/2)^2 + 2T(u/2)
-
An odd triangle number can be expressed as the largest square that fits under it ((u+1)/2) plus 2 smaller triangles of size (u-1)/2.
T(u) = ((u+1)/2) + 2T((u-1)/2)
What I like about these last two is the u/2 in the recursive part of the algorithmic interpretation.
Ok, so another couple of known relationships:
-
The series of differences of 2 consecutive squares is the series of odd numbers:
1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144
-
0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121
=1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23
-
The series of differences of 2 consecutive triangle numbers is the series of whole numbers:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91
-
0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78
=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
-
The relationship between the two series above is 2n - 1.
So I'm not quite sure what to conclude of all this. I can imagine growth in several aspects of the relationship. I'm going to continue to get caught up. I hope this helps someone!