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:
SD | 1 | 1 | 2 | 4 | 11 | 17 | 36 | 48 | 85 | 105 | 166 | 196 | 287 | 329 | 456 | 512 | 681 | 753 | 970 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | |||||||||||||||||||
1 | 1 | ||||||||||||||||||
1 | 3 | 5 | |||||||||||||||||
1 | 5 | 9 | 13 | ||||||||||||||||
1 | 7 | 13 | 19 | 25 | |||||||||||||||
1 | 9 | 17 | 25 | 33 | 41 | ||||||||||||||
1 | 11 | 21 | 31 | 41 | 51 | 61 | |||||||||||||
1 | 13 | 25 | 37 | 49 | 61 | 73 | 85 | ||||||||||||
1 | 15 | 29 | 43 | 57 | 71 | 85 | 99 | 113 | |||||||||||
1 | 17 | 33 | 49 | 65 | 81 | 97 | 113 | 129 | 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:
SD | 1 | 1 | 3 | 5 | 14 | 20 | 42 | 54 | 95 | 115 | 181 | 211 | 308 | 350 | 484 | 540 | 717 | 789 | 1015 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | |||||||||||||||||||
1 | 2 | ||||||||||||||||||
1 | 4 | 7 | |||||||||||||||||
1 | 6 | 11 | 16 | ||||||||||||||||
1 | 8 | 15 | 22 | 29 | |||||||||||||||
1 | 10 | 19 | 28 | 37 | 46 | ||||||||||||||
1 | 12 | 23 | 34 | 45 | 56 | 67 | |||||||||||||
1 | 14 | 27 | 40 | 53 | 66 | 79 | 92 | ||||||||||||
1 | 16 | 31 | 46 | 61 | 76 | 91 | 106 | 121 | |||||||||||
1 | 18 | 35 | 52 | 69 | 86 | 103 | 120 | 137 | 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 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.
Δ | 0 | 1 | 2 | 7 | 6 | 19 | 12 | 37 | 20 | 61 | 30 | 91 | 42 | 127 | 56 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SD1 | 1 | 1 | 2 | 4 | 11 | 17 | 36 | 48 | 85 | 105 | 166 | 196 | 287 | 329 | 456 | 512 |
The interleaved sequence can be separated into the following two sequences:
S1 | 1 | 2 | 11 | 36 | 85 | 166 | 287 | 456 | 681 | 970 | ... | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
S2 | 1 | 4 | 17 | 48 | 105 | 196 | 329 | 512 | 753 | 1060 | ... |
where S1 is defined by the linear recurrence equation
where F0 = 1 and n ≥ 0
and where S2 is defined by the linear recurrence equation
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.
Δ | 0 | 2 | 2 | 9 | 6 | 22 | 12 | 41 | 20 | 66 | 30 | 97 | 42 | 134 | 56 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SD2 | 1 | 1 | 3 | 5 | 14 | 20 | 42 | 54 | 95 | 115 | 181 | 211 | 308 | 350 | 484 | 540 |
The interleaved sequence can be separated into the following two sequences:
S3 | 1 | 3 | 14 | 42 | 95 | 181 | 308 | 484 | 717 | 1015 | ... | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
S4 | 1 | 5 | 20 | 54 | 115 | 211 | 350 | 540 | 789 | 1105 | ... |
where S3 is defined by the linear recurrence equation
where F0 = 1 and n ≥ 0
and where S4 is defined by the linear recurrence equation
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.
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:
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 [
and for SD2 we have:
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