OFFSET
1,2
COMMENTS
This is the lexicographically earliest permutation of the positive integers with this property.
EXAMPLE
Array:
.
1, 2, 4, 6, 16, 19, 27, 42, 46, 68, 72, 84, 120, 138, 156, ...
3, 12, 7, 8, 22, 69, 78, 51, 59, 92, 177, 94, 134, 175, 165, ...
5, 14, 10, 9, 31, 49, 33, 54, 52, 121, 132, 195, 166, 249, 162, ...
11, 13, 15, 18, 21, 23, 48, 63, 65, 77, 75, 97, 131, 178, 171, ...
17, 20, 40, 24, 25, 28, 36, 60, 55, 86, 81, 93, 169, 147, 174, ...
26, 34, 30, 39, 29, 35, 45, 57, 62, 130, 90, 150, 200, 289, 303, ...
32, 41, 37, 38, 87, 96, 89, 47, 50, 71, 186, 204, 146, 202, 205, ...
43, 44, 58, 101, 53, 56, 105, 110, 61, 79, 73, 113, 149, 142, 198, ...
64, 74, 98, 103, 83, 114, 67, 112, 66, 95, 108, 100, 140, 145, 194, ...
70, 80, 76, 159, 123, 85, 179, 168, 99, 104, 107, 115, 129, 153, 210, ...
82, 119, 188, 199, 117, 116, 128, 141, 91, 88, 106, 102, 158, 185, 163, ...
109, 122, 111, 118, 137, 125, 126, 127, 136, 139, 148, 157, 213, 258, 172, ...
124, 167, 176, 135, 222, 155, 143, 144, 133, 231, 197, 240, 164, 211, 214, ...
151, 152, 184, 193, 161, 173, 298, 229, 160, 187, 154, 196, 201, 189, 223, ...
170, 238, 267, 206, 232, 181, 180, 215, 224, 203, 212, 221, 183, 259, 233, ...
...
.
The sum of the digits inside the upper 2 X 2 squares is (1 + 2) + (3 + 1 + 2) = 9 (a square);
The sum of the digits inside the next horizontal 2 X 2 square is (2 + 4) + (1 + 2 + 7) = 16 (a square);
The sum of the digits inside the next horizontal 2 X 2 square is (4 + 6) + (7 + 8) = 25 (a square);
...
The sum of the digits inside the 2nd vertical 2 X 2 square on the left is (3 + 1 + 2) + (5 + 1 + 4) = 16 (a square);
The sum of the digits inside the next vertical 2 X 2 square on the left is (5 + 1 + 4) + (1 + 1 + 1 + 3) = 16 (a square);
...
The sum of the digits inside the lower right 2 X 2 square is (1 + 8 + 9) + (2 + 2 + 3) + (2 + 5 + 9) + (2 + 3 + 3) = 49 (a square); etc.
CROSSREFS
KEYWORD
tabl,nonn
AUTHOR
Eric Angelini and Carole Dubois, May 24 2022
STATUS
approved