I was just putting numbers on the paper and creating some patterns and while doing so, I noticed something.

```
1 2 3 4
2 4 1 3
3 1 4 2
4 3 2 1
```

This gives the value 10 if we sum the values horizontally or vertically or diagonally.

To make sure this also worked for other grid sizes I tried to use the same principle for a smaller grid size of 3×3 and a larger grid size of 5×5

```
1 2 3
2 2 2
3 2 3
```

I tried to apply the same principle for a 3×3 grid, summing the values horizontally, vertically or diagonally give the value `6`

.

```
1 2 3 4 5
2 5 3 1 4
3 3 3 3 3
4 1 3 5 2
5 4 3 2 1
```

And using the same principle for a 5×5 grid and summing the values horizontally, vertically or diagonally gives the value `15`

.

It looks to be a bit different than the usual values we use in a magic square, and what I came up with has more of a pattern, especially when the grid is of uneven size.

1 2 3 4 51 234 5 1 2 3 4 525 3 142 531 4 2531433 3 333 3 3 3 33 3 3 3 341 3 524 135 2 413525 4 3 2 15 432 1 5 4 3 2 1

Did I just create something completely new or is something like this already known in the mathematical world, if so what is it called?