I will now investigate different size grids.
An 11 by 11
1 2 3 n=24
2 13 14
23 24 25
T=n+ (n-11) + (n-23) + (n-22) + (n-21)
T=5n-77
Now test this:
24 25 26 n=47
35 36 37 T=5n - 77
46 47 48 T= (5 x 47) - 77
T=158
Check
24+25+26+36+47
=158
So this formula does work.
A 6x6 grid
1 2 3 n=14
7 8 9
3 14 15
T=0 + (n-6) + (n-12) + (n-13) + (n -11)
T=5n-42
Now to test it.
8 9 10 n=21
4 15 16
20 21 22
T=5n -42
T=(5x21)-42
T=105-42
An 11 by 11
1 2 3 n=24
2 13 14
23 24 25
T=n+ (n-11) + (n-23) + (n-22) + (n-21)
T=5n-77
Now test this:
24 25 26 n=47
35 36 37 T=5n - 77
46 47 48 T= (5 x 47) - 77
T=158
Check
24+25+26+36+47
=158
So this formula does work.
A 6x6 grid
1 2 3 n=14
7 8 9
3 14 15
T=0 + (n-6) + (n-12) + (n-13) + (n -11)
T=5n-42
Now to test it.
8 9 10 n=21
4 15 16
20 21 22
T=5n -42
T=(5x21)-42
T=105-42