Take a panmagic 19x19 square and add 40 to all numbers, so in the 19x19 inlay are the 361 middle numbers from 41 up to 401.
In the border are the 40 lowest (1 up to 40) and the 40 highest (402 up to 441) numbers. Read the explanation on webpage 3x3 in 5x5 & concentric, how to construct the border.
See in the download below how the 21x21 border has been constructed or use the download to puzzle your own border.
The result is:
Pan 19x19 in 21x21 magic square
20 |
40 |
37 |
34 |
32 |
31 |
30 |
29 |
27 |
24 |
423 |
424 |
427 |
428 |
431 |
432 |
435 |
436 |
439 |
440 |
22 |
403 |
41 |
363 |
308 |
271 |
234 |
197 |
160 |
123 |
86 |
391 |
373 |
336 |
299 |
262 |
225 |
188 |
151 |
114 |
77 |
39 |
404 |
399 |
381 |
326 |
306 |
251 |
214 |
177 |
140 |
103 |
66 |
48 |
353 |
316 |
279 |
242 |
205 |
168 |
131 |
94 |
38 |
406 |
74 |
56 |
361 |
324 |
269 |
249 |
194 |
157 |
120 |
83 |
388 |
370 |
333 |
296 |
259 |
222 |
185 |
148 |
111 |
36 |
407 |
91 |
396 |
378 |
341 |
304 |
267 |
212 |
192 |
137 |
100 |
63 |
45 |
350 |
313 |
276 |
239 |
202 |
165 |
128 |
35 |
409 |
108 |
71 |
53 |
358 |
321 |
284 |
247 |
210 |
155 |
135 |
80 |
385 |
367 |
330 |
293 |
256 |
219 |
182 |
145 |
33 |
414 |
125 |
88 |
393 |
375 |
338 |
301 |
264 |
227 |
190 |
153 |
98 |
78 |
42 |
347 |
310 |
273 |
236 |
199 |
162 |
28 |
416 |
142 |
105 |
68 |
50 |
355 |
318 |
281 |
244 |
207 |
170 |
133 |
96 |
383 |
382 |
327 |
290 |
253 |
216 |
179 |
26 |
417 |
159 |
122 |
85 |
390 |
372 |
335 |
298 |
261 |
224 |
187 |
150 |
113 |
76 |
58 |
345 |
325 |
270 |
233 |
196 |
25 |
419 |
176 |
139 |
102 |
65 |
47 |
352 |
315 |
278 |
241 |
204 |
167 |
130 |
93 |
398 |
380 |
343 |
288 |
268 |
213 |
23 |
421 |
211 |
156 |
119 |
82 |
387 |
369 |
332 |
295 |
258 |
221 |
184 |
147 |
110 |
73 |
55 |
360 |
323 |
286 |
231 |
21 |
17 |
229 |
174 |
154 |
99 |
62 |
44 |
349 |
312 |
275 |
238 |
201 |
164 |
127 |
90 |
395 |
377 |
340 |
303 |
266 |
425 |
16 |
246 |
209 |
172 |
117 |
97 |
384 |
366 |
329 |
292 |
255 |
218 |
181 |
144 |
107 |
70 |
52 |
357 |
320 |
283 |
426 |
13 |
263 |
226 |
189 |
152 |
115 |
60 |
59 |
346 |
309 |
272 |
235 |
198 |
161 |
124 |
87 |
392 |
374 |
337 |
300 |
429 |
12 |
280 |
243 |
206 |
169 |
132 |
95 |
400 |
364 |
344 |
289 |
252 |
215 |
178 |
141 |
104 |
67 |
49 |
354 |
317 |
430 |
9 |
297 |
260 |
223 |
186 |
149 |
112 |
75 |
57 |
362 |
307 |
287 |
232 |
195 |
158 |
121 |
84 |
389 |
371 |
334 |
433 |
8 |
314 |
277 |
240 |
203 |
166 |
129 |
92 |
397 |
379 |
342 |
305 |
250 |
230 |
175 |
138 |
101 |
64 |
46 |
351 |
434 |
5 |
331 |
294 |
257 |
220 |
183 |
146 |
109 |
72 |
54 |
359 |
322 |
285 |
248 |
193 |
173 |
118 |
81 |
386 |
368 |
437 |
4 |
348 |
311 |
274 |
237 |
200 |
163 |
126 |
89 |
394 |
376 |
339 |
302 |
265 |
228 |
191 |
136 |
116 |
61 |
43 |
438 |
1 |
365 |
328 |
291 |
254 |
217 |
180 |
143 |
106 |
69 |
51 |
356 |
319 |
282 |
245 |
208 |
171 |
134 |
79 |
401 |
441 |
420 |
402 |
405 |
408 |
410 |
411 |
412 |
413 |
415 |
418 |
19 |
18 |
15 |
14 |
11 |
10 |
7 |
6 |
3 |
2 |
422 |
You can use this method to construct magic squares of odd order from 5x5 to infinity. See on this website 5x5, 7x7, 9x9, 11x11, 13x13, 15x15, 17x17, 19x19, 21x21, 23x23, 25x25, 27x27, 29x29 & 31x31