This site is supported by donations to The OEIS Foundation.

User:Daniel Poveda Parrilla

From OeisWiki
Jump to navigationJump to search

I'm here because I enjoy finding and creating formulas and integer sequences. I've always loved doing this for fun!

But to be honest, I've really ended up here because of one challenge that Matt Parker proposed in YouTube about square triangular numbers and the pattern that is behind them, so I think it's a good idea to share in my profile page everything I've found out.


My inquiries about square triangular numbers

To make every expression clear, I am naming the sequences as following:

  • A001110 as ST (square triangular numbers):


 0,1,36,1225,41616,1413721,48024900,1631432881,55420693056...



 0,1,1,1,2,3,5,7,12,17,29,41,70,99,169,239...



 0,1,4,9,16,25,36,49,64,81,100,121,144,169...



 0,1,3,6,10,15,21,28,36,45,55,66,78,91,105...



 0,2,10,60,348,2030,11830,68952,401880,2342330,13652098...


  • A235367 as D (sum of positive even numbers up to n2):


 0,6,20,72,156,342,600,1056,1640,2550,3660,5256,7140,9702,12656,16512,20880...


  • A000129 as P (Pell numbers), having that Pn = B2n:


 0,1,2,5,12,29,70,169,408,985,2378,5741,13860,33461,80782,195025,470832,1136689...




Given the equations of this problem:


 STn=Si=Tj


I started my study knowing these expressions for square numbers and triangle numbers:


 Si=i2=∑x=0i−12x+1


 Tj=j(j+1)2=∑x=0jx


As each square number is a sum of consecutive odd numbers and each triangular number is a sum of consecutive numbers, I focused on the different elements in each sum, noticing that parity of triangular numbers is important and that there has to be a sum of consecutive odd numbers that equals a sum of consecutive even numbers:


 ∑x=j+(jmod2)2i−12x+1=∑x=0j−(jmod2)22x


Then I noticed that j+(jmod2)2 is a square number and it divides each corresponding square triangular number, resulting in another square number, so every square triangular number is a product of two square numbers. The result of each sum is a term of sequence D and it can also be linked with sequence B:


Dk=DB2n+1∣n>1


Examples:


 ST2=S6=T8=36=22⋅32;∑x=8+026−12x+1=∑x=08−022x=20=2⋅T4−0=D3


 ST3=S35=T49=1225=52⋅72;∑x=49+1235−12x+1=∑x=049−122x=600=2⋅T25−1=D7


 ST4=S204=T288=41616=122⋅172;∑x=288+02204−12x+1=∑x=0288−022x=20880=2⋅T144−0=D17


 ST5=S1189=T1681=1413721=292⋅412;∑x=1681+121189−12x+1=∑x=01681−122x=706440=2⋅T841−1=D41


I found a general term for a sequence A similar to B, but not exactly equal:


 0,1,1,2,3,5,7,12,17,29,41,70,99,169,239...


I fixed this conditions for my sequence:


 A0=0,

 A1=1,

 A2=1,

 m=(n−1)mod2.


The general term I found for this sequence is the following:


 An=An−1−m+2m⋅An−2−m∣n>2


Here is a curiosity: A13=132. I do not know if this happens with more terms of this sequence.


After all these inquiries, I got here and I found out sequence B and that years ago Hugh Darwen linked ST with it.

I linked sequences ST, S and T as well (square triangular numbers, square numbers and triangular numbers) with B knowing the nth position of a square triangular number:


 i=B2n⋅B2n+1;j=2(B2n)2−(B2nmod2)


 STn=S(B2n⋅B2n+1)=T[2(B2n)2−(B2nmod2)]


 STn=(B2n⋅B2n+1)2=[2(B2n)2−(B2nmod2)]⋅([2(B2n)2−(B2nmod2)]+1)2




I discovered these new patterns and formulas for square triangular numbers:


 STn=(B2n)4+∑x=0(B2n)2−(B2nmod2)2x


This formula can be proved graphically, I guess this is valid for every square triangular number. For each square triangular number there is a square of squares in each corresponding triangle. Cutting, one level at a time, both acute angle corners, we're subtracting consecutive even numbers, ending up in a square of squares (it looks like kind of a Sierpiński square I think) with one of its corners being and not being part of the triangle's hypotenuse (depending on the parity of the triangular number, that's why I used modular arithmetic). To make this formula shorter, we can use terms of sequences B and D. As with a sum of consecutive even numbers we can build two triangles, we can write a better formula using only Pell numbers and triangular numbers:


 STn=B2n4+DB2n+1∣n>1


 STn=Pn4+2⋅TPn2−(Pnmod2)


This example is a graphical proof of this formula building a triangle with ST3 elements:

Proof of this formula using number 1225.


As it has been already observed, there is a sum of consecutive odd numbers equivalent to that sum of consecutive even numbers and both of them can be expressed using terms of B sequence knowing the nth position of a square triangular number in the sequence:


 STn=(B2n)4+∑x=(B2n)2(B2n⋅B2n+1)−12x+1∣n≠0


Writing it this way, I have found a link with sequence C. Each Cn is related to the sum of consecutive odd numbers that equals STn+1, and also it can be proved graphically. Concretely, Cn is the number of last gnomons that we have to subtract to the square to get a smaller one formed by (B2(n+1))4 elements, the same Pell square of squares previously shown:


 Cn=(B2(n+1)⋅B2(n+1)+1)−(B2(n+1))2=B2(n+1)⋅(B2(n+1)+1−B2(n+1))


I linked ST and all the patterns I detected with the sequence I found out in the first place (as I did not know B in the beginning, it was later when I linked ST and B as I already showed), having B0=A0 and Bn+1=An | n ≠ 0.


 ST0=0


 STn=S(A2n−1⋅A2n)=T[2(A2n−1)2−(A2n−1mod2)]∣n≠0


 STn=(A2n−1⋅A2n)2=[2(A2n−1)2−(A2n−1mod2)]⋅([2(A2n−1)2−(A2n−1mod2)]+1)2∣n≠0


 STn=(A2n−1)4+∑x=0(A2n−1)2−(A2n−1mod2)2x∣n≠0


 STn=(A2n−1)4+∑x=(A2n−1)2(A2n−1⋅A2n)−12x+1∣n≠0


 STn=(A2n−1)4+DA2n∣n>2




Later (Jul 30 2016) I generalized this pattern to create a new sequence, each number being triangular formed by a square of squares and two small triangles:


 A275496n=n4+∑x=0n2−(nmod2)2x=n4+2⋅Tn2−(nmod2)


After that, I felt like looking for more triangles built following this pattern, so I generalized it a bit more (next sequence still has not been approved):


 A276914n=n2+∑x=0A052928n2x=n2+2⋅TA052928n


And... that is all for now. Some things are missing, I have to complete this page.