What is Parkside's triangle?
Parkside triangle is a mathematical pattern that generates a triangle of numbers that has two variables, size and seed. The variable size, n, must meet the following condition: 1 <= n <= 20. This means that n may be greater or equal to any number 1 and any number less or equal to 20. N must therefore be between 1 and 20.
number N represents a triangle series. If n = 5, then there are 5 rows forming a triangle. The first line of the triangle cannot have any empty number in it. All positions must contain a number larger or straight 1. The second variable is the seed, s, which represents the first number in the first line of the triangle. The seed must meet the following conditions: 1 <= s <= 9. The seed must be larger or equal to 1 and smaller or equal 9.
When the size and variable seeds are known, this particular pattern is created. Example would look like this:
size = 4 seed = 1
1 2 4 7
3 5 8
6 9
1
Size = 5 seeds = 3
5 7 1 5
8 2 6
3 7
8
The number formula to create the number of triangle starting to the left of the bottom line and then moves to the right and down. Every time the next line is added, all numbers count from the first line down. In both directions, the Parkside triangle will contain the same number of rows. The program will read in size and seed and issue the correct formula of the numbers. This is achieved by means of loop logic and basic arithmetic together with programming skills and can be used to present the foundations of LOOP Logic.
There are no other limits for the Parkside triangle other than the specified sizes and conditions of seeds to initiate a pattern. In any iteration it will not have more than 20 lines and the initial number not higher than 9. As shown in the example of the above triangle, there are no zeros.