The Even/Odd Triangles - Ascending Diagonals (Part VIIIc)

In the previous page Part VIIIb a new Pascal Type Triangle (WOT) was shown along with its ascending diagonals. The terms in the triangle were obtained by adding incremental numbers starting at 0 to each row of the triangle starting at row 1. This section will form two other similar Pascal type triangles (PTTE and PTTO) using either all even numbers or all odd numbers to the triangle rows and show that the sequences obtained are similar in structure to those of the WOT triangle from Part VIIIb. The sequences will also be shown to consists of two interleaved sequences each having their own similar type equations.

The triangles are constructed using the following pseudocode:

                                                              for (n=-1;n<=j;n++){ 
                                                                C=1; 
                                                                Print C;     
                                                                for (k=n; k<=2*n; k++){    
                                                                C=C + N; 
                                                                Print C;     
                                                                 }      
                                                               }

where N equals 2*n for the even derived triangle and 2*n+1 for the odd derived. In addition, the first Print outputs a 1 and the second Print the rest of the terms on the row. For triangle PTTE (Table I) the even numbers were added starting at row 1 (remember row 0 contains the solitary number 1), using the initial even number 0, while for triangle PTTO (Table II) the odd numbers were added starting at again row 1 using the initial odd number 1. The even or odd numbers were then incremented and added subsequently to the next row filling up Tables I and II to the desired number of rows.

The first even triangle is displayed in irregular triangle array format with two colors, blue and yellow, corresponding to the ascending diagonals as shown in the partial Table I where the first row - SD represents the Sum of Diagonals:

Table I (PTTE/Diagonals)
SD11 2411 1736 4885105 166196287 329456512 681753970
1
11
135
159 13
1713 1925
1917 253341
11121 3141 5161
11325 374961 7385
11529 4357 718599 113
11733 496581 97113129 145

where the sum (∑) of each row for PTTE takes may be derived from the equation m3 + 1, starting at m=0, a known sequence stored in the OEIS database under the Sloane number A001093.

Similarly the second odd triangle is displayed as shown in the partial Table II where again the first row - SD represents the Sum of Diagonals:

Table II (PTTO/Diagonals)
SD11 3514 2042 5495115 181211308 350484540 7177891015
1
12
147
1611 16
1815 2229
11019 283746
11223 3445 5667
11427 405366 7992
11631 4661 7691106 121
11835 526986 103120137 154

and where the sum (∑) of each row for PTTO takes may be derived from the equation (2m3 + m2 + m + 2)/2, starting at m=0, a known sequence stored in the OEIS database under the Sloane number A081423.

Two computer programs giving expanded versions (more rows) of the PTTE and PTTO triangles are shown in PTTE expanded and PTTO expanded along with the sum of their diagonals at the top. Copies of the text files are also shown in PTTE text and PTTO text.

The Sum of Diagonal Sequence

The first sequence of diagonal terms below is listed along with the delta values, Δ i.e., the difference between terms. There are two types of Δ differences here. The blue color type I (n(n + 1)) and the non blue type II, the hex numbers (3n(n+1) + 1). Again, we are dealing with what ascending diagonals whose terms form an interleaved sequence, i.e., where both SDs are composed of two sequences, first one term from one sequence followed by a term from a second sequence.

Δ0127 61912 3720613091 4212756
SD11124 111736 4885105166196287 329456512

The interleaved sequence can be separated into the following two sequences:

S112 1136 85166287 456681970...
S214 1748 105196329 5127531060...

where S1 is defined by the linear recurrence equation

Fn+1 = Fn + 4n2 + 4n + 1

where F0 = 1 and n ≥ 0

and where S2 is defined by the linear recurrence equation

Fn+1 = Fn + 4n2 + 6n + 3

The second sequence of diagonal terms below is listed along with the delta values, Δ i.e., the difference between terms. There are again two types of Δ differences here. The blue color type I (n(n + 1)) as above and the non blue type II, the hexagonal spiral numbers numbers (3n2 − 2n + 1), stored in the OEIS database under Sloane number A056105. Again, we are dealing with what ascending diagonals whose terms form an interleaved sequence, i.e., where both SDs are composed of two sequences, first one term from one sequence followed by a term from a second sequence.

Δ0229 62212 4120663097 4213456
SD21135 142042 5495115181211308 350484540

The interleaved sequence can be separated into the following two sequences:

S313 1442 95181308 4847171015...
S415 2054 115211350 5407891105...

where S3 is defined by the linear recurrence equation

Fn+1 = Fn + 4n2 + 5n + 2

where F0 = 1 and n ≥ 0

and where S4 is defined by the linear recurrence equation

Fn+1 = Fn + 4n2 + 7n + 4

where F0 = 1 and n ≥ 0.

In addition, these two equations were incorporated into both computer programs in an interleaved manner in order to generate the interleaved sequence in the program which agrees with the sums of the ascending diagonals.

Alternative Expressions for the Interleaved Sequences

Alternatively expressions that can determine each of the terms in the interleaved sequences by calculating the terms as an ordered pair (n1,n2) were found, where the left equation (left of the ± sign) is the sum of numbers n1 and n2, while the equation on the right (right of the ± sign) is the difference between n1 and n2:

SD1 [(8/3)n3 − 7n2 + (19/3)n ± (-n)(n − 1)]/2
SD2 [(8/3)n3 − 6n2 + (16/3)n ± (-n)(n − 1)]/2

where n > 0. The right equation in the above expression when subtracted from the left equation and divided by 2 produces n1 while the right equation when added to the left and divided by 2 produces n2.

However, this method uses the same n for equation SD1 and the same n for equation SD2 and what is required is a method that employs two equations each, one that calculates the even terms and one that calculates the odd terms of the interleaved equations. To do this the expressions above are separated into two parts (the − and +) and subjected to multiplication of both top and bottom by 6. Replacement of the n of these two equations with the appropriate even [n=(n+2)/2] or odd [n=(n+1)/2] expression, produces the two equations to the right of the arrow. Only even numbers inserted into the first equation and odd into the second equation yield the correct result. For SD1 we have:

a(2n-2) = (8n3 − 7n2 + 19n − 3n(n-1))/6 ➞ (n3n + 6)/6
a(2n-1) = (8n3 − 7n2 + 19n + 3n(n-1))/6 ➞ (4n3 − 6n2 + 8n + 18)/24

and for SD2 we have:

a(2n-2) = (8n3 − 6n2 + 16n − 3n(n-1))/6 ➞ (4n3 + 3n2 + 2n + 24)/24
a(2n-1) = (8n3 − 6n2 + 16n + 3n(n-1))/6 ➞ (4n3 − 3n2 + 8n + 15)/24

This completes Part VIIIc. To go back to Part VIIIb. Go back to homepage.


Copyright © 2022 by Eddie N Gutierrez. E-Mail: enaguti1949@gmail.com