(In the hexagons, all lines are considered even if they don't have the maximum length)
(PS: make sure you hover your mouse over the diagrams)
(In the hexagons, all lines are considered even if they don't have the maximum length)
(PS: make sure you hover your mouse over the diagrams)
Upon a quick research, there are many variations, and the closest to what you're describing is the "pandiagonal" magic square, where additional diagonals are considered (except they wrap around the edges of the square in a slightly funny way, so that every diagonal still contains exactly N numbers): https://en.wikipedia.org/wiki/Pandiagonal_magic_square
Seems "unfair" that hexagons have multiple line lengths to consider. I think this article's modification is a good one in that framing: Shifting every number up or down doesn't make the magic squares any easier, but it certainly helps with hexagons.