We also know that the difference between the black squares and the total of all the squares is 4.
So therefore we could say that to find the black squares, we should takeaway the formula of the white squares from the total squares.
Formula = S (S stands for sum of squares) – C (Consistent difference) plus the sequence number.
Dark squares = S - C+n
I am going to test this formula with an example.
Sum of squares = 41
Consistent difference plus the sequence number = 12+4
The number of black squares = 41-16= 25
After producing the formulas above, I have decided to look at the issue in a different angle, by adding the cumulative total number of squares, cumulative number of white and cumulative number of black, I have also decided to place the result of my founding’s in a formula form with the values being represented by algebraic letters, if my theories prove right I will prove them by substituting the letters with true values.
The letters in the table represent the algebraic letters I spoke of earlier, now the first obvious matter I have noticed is the plain fact that the total of white and black in a certain pattern will give us the total number of squares in that pattern, e.g. in pattern 6, the total of white squares which is 20 + the total of black squares which is 41 will gives us the total of squares in that pattern which is 61, even though this is plainly simple I have made a formula relating to this.
Tn-2 = Wn-2 + Bn-2
My second observation, concerns the fact which I found in my table, that the sum we get from taking away the number of white squares in certain pattern from the total squares of that same pattern, we see that this sum is equal to the sum found when we add the white and black squares from the previous pattern. Io have created a formula to show this fact and have the evidence below it.
Tn – 1 - Wn – 1 = Wn – 2 + Bn – 2
E.g.
Pattern6 61-20 = Pattern5 25+16
Pattern5 41-16 = Pattern4 12+13
My third observation, concerns finding the number of white squares in a pattern, which is found when we take away the total number of squares of a pattern from the total number of squares of the pattern prior to it.
Tn – 1 – Tn – 2 = Wn – 1
E.g. (Pattern 6) 61- (Pattern 5) 41= 20 white squares in pattern 6
My third observation, concerns finding the number of black squares in a pattern, which is simply the total of black squares in pattern equals to the total of squares in the pattern prior to it.
Bn = Tn – 1
E.g. (Black squares in pattern 6) 41 = 41 (Total number of squares in pattern 5)
Now, I will come to the main point, which is to find a formula for the total number of squares with out any information apart from the pattern number, and through this formula I will be able to find out how many squares would be needed to make any cross shape made in the patterns above.
Formula
n(n-1) x 4 + 1
2
Proving the formula
n = 1
1x(1-1)= 0
0/2= 0
0x4= 0
0+1= 1
n = 2
2x(2-1)= 2
2/2= 1
1x4= 4
4+1= 5
n = 3
3x(3-1)= 6
6/2= 3
3x4= 12
12+1= 13
n = 4
4x(4-1)= 12
12/2= 6
6x4= 24
24+1= 25
n = 5
5x(5-1)= 20
20/2= 10
10x4= 40
40+1= 41
n = 6
6x(6-1)= 30
30/2= 15
15x4= 60
60+1= 61
n = 7
7x(7-1)= 42
42/2= 21
21x4= 84
84+1= 85
I believe now that I have proven my initial objective, and it is possible to find the total number of squares for any cross section shape like the ones above.
Part 2: Extend your investigatons to three dimensions.
Now there is a clear constant of 8 we can use the formula which is the is the general term for all quadratic sequences
T = an³ + bn² + cn + d
The first task is to find the values the values of a, b, c and d
To find (d) I first have to find out the number of total cubes for the 0th term.
d = -1
Now that I have obtained the value of (d) I will be able to find the rest of the values. I would however need to cancel out both (c) and (d).
In this example n = 1, T = 1
T = an³ + bn² + cn + d
1 = a x 1³ + b x 1² + c x 1 + -1
1 = a x 1 + b x 1 + c x 1 - 1
1 = a + b + c - 1
2 = a + b + c
n = 2, T = 7
T = an³ + bn² + cn + d
7 = a x 2³ + b x 2² + c x 2 + -1
7 = a x 8 + b x 4 + 2c - 1
7 = 8a + 4b + 2c - 1
8 = 8a + 4b + 2c
4 = 4a + 2b + c
After cancelling out (d). I will be able to cancel out (c) by subtracting first equation from the second.
- 4 = 4a + 2b + c
- 2 = a + b + c
- 2 = 3a + b
Now I need to obtain a second equations with only (a) and (b). I will use the same method used except this time (d) will be cancelled out from n=3 and then will be subtracted from the result found in n=2 found above.
n = 3, T = 25
T = an³ + bn² + cn + d
25 = a x 3³ + b x 3² + c x 3 + -1
25 = a x 27 + b x 9 + 3c – 1
25 = 27a + 9b + 3c – 1
26 = 27a + 9b + 3c
I
26 = 27a + 9b + 3c 4 = 4a + 2b + c
-12 = 12a + 6b + 3c x 3
14 = 15a + 3b 12 = 12a + 6b + 3c
Now I have two equations with only (a) and (b). Now I will cancel (b) to obtain the value of (a) using algebra.
14 = 15a + 3b 2 = 3a + b
- 6 = 9a + 3b x 3
- 8 = 6a 6 = 9a + 3b
8 = 6a
4 / 3 = 3a / 3
a = 1⅓
Now with the value of (a), I can find the value of (b) using substitution.
2 = 3 x 1⅓ + b
2 = b + 4
2 - 4 = b + 4 - 4
b = -2
Having obtained a, b and d, the value of c can be solved using algebra.
n = 1, T = 1
T = an³ + bn² + cn + d
1 = 1⅓ x 1³ + -2 x 1² + c x 1 + -1
1 = 1⅓ x 1 + -2 x 1 + c - 1
1 = 1⅓ + -2 + c - 1
1 = 1⅓ - 2 + c - 1
1 = c + 1⅓ - 3
1 = c - 1⅔
1 + 1⅔ = c - 1⅔ + 1⅔
c = 2⅔
I now have the general term for this sequence.
T = 1⅓n³ - 2n² + 2⅔n - 1
T = 1⅓n³ - 2n² + 2⅔n - 1
Proving the formula
n = 1
1⅓ x 1³ - 2 x 1² + 2⅔ x 1 - 1 = 1
1⅓ x 1 - 2 x 1 + 2⅔ - 1 = 1
1⅓ - 2 + 1⅔ = 1
n = 2
1⅓ x 2³ - 2 x 2² + 2⅔ x 2 - 1 = 7
1⅓ x 8 - 2 x 4 + 5⅓ - 1 = 7
10⅔ - 8 + 4⅓ = 7
n = 3
1⅓ x 3³ - 2 x 3² + 2⅔ x 3 - 1 = 25
⅓ x 27 - 2 x 9 + 8 - 1 = 25
36 - 18 + 7 = 25
n = 4
1⅓ x 4³ - 2 x 4² + 2⅔ x 4 - 1 = 63
1⅓ x 64 - 2 x 16 + 10⅔ - 1 = 63
85⅓ - 32 + 9⅔ = 63
n = 5
1⅓ x 5³ - 2 x 5² + 2⅔ x 5 - 1 = 129
1⅓ x 125 - 2 x 25 + 13⅓ - 1 = 129
166⅔ - 50 + 12⅓ = 129
n = 6
1⅓ x 6³ - 2 x 6² + 2⅔ x 6 - 1 = 231
1⅓ x 216- 2 x 36 + 16 - 1 = 231
288 - 72 + 15 = 231
n = 7
1⅓ x 7³ - 2 x 7² + 2⅔ x 7 - 1 = 377
1⅓ x 343- 2 x 49+ 18⅔ - 1 = 377
457⅓- 98+ 17⅔ = 377
I believe now that I have proven my initial objective, and it is possible to find the total number of cubes for any 3D cross section shape like the ones above.