Next Article in Journal
New Class of Specific Functions with Fractional Derivatives
Previous Article in Journal
Injective Hulls of Infinite Totally Split-Decomposable Metric Spaces
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Critical Sets and Unavoidable Sets of Strictly Concentric Magic Squares of Odd Order and Their Application to Prime Strictly Concentric Magic Squares of Order 5 †

School of Computing and Mathematics, University of South Wales, Llantwit Rd, Pontypridd CF37 1DL, UK
*
Author to whom correspondence should be addressed.
This paper is an extended version of Dr. Skelt’s doctoral dissertation.
Axioms 2025, 14(8), 607; https://doi.org/10.3390/axioms14080607 (registering DOI)
Submission received: 29 May 2025 / Revised: 17 July 2025 / Accepted: 24 July 2025 / Published: 4 August 2025
(This article belongs to the Section Algebra and Number Theory)

Abstract

There has been much interest in the mathematical investigation of critical sets and unavoidable sets in Latin Squares, Sudoku, and their applications to practical problems in areas such as agriculture and cryptology. This paper considers the associated structures of Strictly Concentric Magic Squares (SCMSs) and Prime Strictly Concentric Magic Squares (PSCMSs). A framework of formal definitions is given that leads to the definitions of critical sets and unavoidable sets. Minimal critical sets are of interest in Latin Squares, and in this article, the cardinality of minimal critical sets of SCMS is given for all n, n odd. Two families of unavoidable sets are established for SCMS, leading to a complete classification of unavoidable sets of minimum PSCMS of order 5.

1. Introduction and Preliminaries

The study of completability of partial grids and their applications to areas such as experimental design, error-correcting codes, and computer science [1,2] is evident in the literature for Latin Squares and Sudoku. Keedwell [3] briefly considered partial magic squares along with Latin Squares and Sudoku grids, investigating critical sets (sets comprising sufficient clues/information to ensure the unique completability) of normal magic squares of orders 3 and 4. Keedwell postulated that concentric magic squares may possess sufficient structure to enable the determination of critical sets within grids of a larger order. While a partial grid containing all values specified by a critical set ensures unique completion, unavoidable sets of a grid specify cell values that must be present in any critical set [4,5].
The current authors provided the first formal treatment of Strictly Concentric Magic Squares (SCMSs) in the literature [6], presenting foundational material on, and terminology for, this structure, following from the literature on Latin Squares [7]. That paper presents a full enumeration of minimum Prime Strictly Concentric Magic Squares (PSCMSs) of order 5, which are squares composed entirely of prime numbers and having a minimum centre cell value. This paper extends this foundational material on SCMSs to critical sets and unavoidable sets, providing definitions and results on SCMSs in general, before applying these results to PSCMSs of order 5. A complete classification for unavoidable sets of minimum PSCMSs of order 5 is given.
The basic properties of magic squares that are needed in this paper are now given. A magic square of order n is an n-by-n grid containing n 2 distinct integers positioned such that all rows, columns, and main diagonals sum to the same value known as the magic constant. A normal magic square, NMS, contains the integers 1 to n 2 . A prime magic square, PMS, contains n 2 distinct primes. A cell of a grid of order n at row i, i = 1 , , n , and column j, j = 1 , , n , is denoted ( i , j ) and has value a i j . A triple  ( i , j , a i j ) specifies a value a i j in row i and column j of a grid. Denote by A n the cells of a grid of order n, i.e., a set of ( i , j ) tuples, and denote by A n a set of triples ( i , j , a i j ) . A centre subsquare of order m, m odd, of a magic square of order n, n odd, comprises the centre m by m cells of the magic square, for m = n 2 i , i = 1 , , n 1 2 . The smallest such centre subsquare is of order 1. A magic centre subsquare of order m of a magic square of order n is a centre subsquare which is itself a magic square. The centre subsquare of order 1 is here considered a trivial magic centre subsquare, but otherwise the concept of concentric magic squares given here follows Andrews [8]. A magic square of order n, n 3 , for which its order ( n 2 ) centre subsquare is a magic centre subsquare is termed a concentric magic square, CMS.
This paper focuses on SCMS of order n, n odd, but where the definitions apply to both odd and even orders they are given in general. Throughout this paper it is taken that the centre cell value of the grid is always known and is denoted M.
Definition 1.
A magic square of order n, n 5 and odd, is strictly concentric, denoted an SCMS, if each of its order n 2 i centre subsquares, i = 1 , , n 3 2 , is a CMS. A centre subsquare of order 3 is here considered a trivial SCMS. A SCMS containing n 2 distinct primes is denoted a PSCMS.
In the exploration of completability of SCMS later in this paper, the concepts of borders and paired cells will be of importance due to constraints on the values in such cells. Definitions 2–6, and Table 1 below are taken from [6].
Definition 2.
For an SCMS of order n, n odd, a cell ( i , j ) has a paired cell  ( i ¯ , j ¯ ) , such that
( i ¯ , j ¯ ) = ( n i + 1 , n i + 1 ) i = 1 , , n , i n + 1 2 , j = i ( 1 ) ( n i + 1 , i ) i = 1 , , n , i n + 1 2 , j = n i + 1 ( 2 ) ( i , n j + 1 ) i = 2 , , n 1 , j i , i + j n when i > j and i + j n + 2 when i < j ( 3 ) ( n i + 1 , j ) j = 2 , , n 1 , j i , i + j n when j > i and i + j n + 2 when j < i ( 4 )
Definition 2 is illustrated in Figure 1, in which the number in a cell relates to an equation number from Definition 2, and in combination with the following Greek letter indicates a pairing with another cell.
Definition 3.
An SCMS of order n, n odd, and each of its centre subsquares has a border which comprises those cells which are adjacent to its respective outer edge. Let B n be the set of border cells of the SCMS of order n, and let B n 2 i be the set of border cells of its centre subsquares of order n 2 i , i = 1 , , n 3 2 . Let B n   = B n 2 i , i = 0 , , n 3 2 .
That is, B n denotes the set of all the cells of an SCMS of order n, n odd, apart from the trivial centre subsquare.
Definition 4.
A border pair  ( a i j , a i ¯ j ¯ ) is a pair of values placed in cells in B n for an SCMS of order n, n odd, where ( i , j ) and ( i ¯ , j ¯ ) are paired cells.
An SCMS of order n, n odd, with centre cell value M has magic constant S n = n M . It follows that the elements of each border pair of an SCMS of order n, n odd, sum to 2 M [6].
Definition 5.
Denote two values summing to 2 M , where M is the centre cell value of an SCMS, as a pair of complement values. Hence, all border pairs of an SCMS are pairs of complement values. Denote two primes summing to 2 M , where M is the centre cell value of a PSCMS, as a pair of complement primes. Hence, all border pairs of a PSCMS are pairs of complement values (primes).
Definition 6.
An SCMS of order n, n odd, that has minimum centre cell value, M, is termed a minimum SCMS. A PSCMS of order n, n odd, that has minimum centre cell prime, M, is termed a minimum PSCMS.
The main focus of this paper is PSCMSs of order 5. All examples of SCMSs of order 5 given in this paper are minimum PSCMSs, and all examples of SCMS of order 3 are of valid centre subsquares of minimum PSCMSs of order 5. The magic constant of a minimum PSCMS of order 5, which has M = 251 , is given in [9] and the number of minimum PSCMSs of order 5 is enumerated in [6].
The specific permutation operations in Table 1 (first given by the authors in [6]) may be performed on the outer border of the grid of order n and on the borders of its centre subsquares. Let s denote the order of the grid or its centre subsquares, s = 3 , 5 , , n , s odd. When applying the permutation operations to the border of the grid or a centre subsquare of order s, consider the rows and columns of the border to be numbered 1 , , s . Note that the first two permutation operations may not be performed on the centre subsquare of order 3, since there is only a single non-corner border pair, in each case [6].
Definition 7.
Two Strictly Concentric Magic Squares, A n 1 and A n 2 , of order n with magic constant n M , n odd, are equivalent if one can be obtained from the other by undergoing specific permutations, given in Table 1. Otherwise the magic squares are non-equivalent.
All of the operations in Table 1 are feasible and each forms a group; further details can be found in [6].
Let N be a subset of the set of natural numbers N . There exist pairs of complement values a i j , a ¯ i j N such that a i j + a ¯ i j = 2 M , where M is the centre cell value of an SCMS of order n, n odd, and a i j , a ¯ i j are the values in paired cells. Likewise, this property holds for pairs of complement primes a i j , a ¯ i j P , where P is a subset of the set of prime numbers P and their sum is the centre cell value of a PSCMS of order n, n odd.
Firstly, in this paper, definitions are given for SCMSs, and secondly for PSCMSs, in relation to the completability of partial grids. Recall that the centre cell value, M, of the SCMS is known for a given grid; the pairs of values summing to 2 M form the corresponding set N . The larger the chosen value of M, the more combinations of values summing to 2M there will be, and hence, the number of combinations of values summing to 2 M grows, and thus the cardinality of the set of values in N is larger. It is noted that as N is used to fill the remaining cells in the SCMS, then M must be chosen to be suitably large in order for there to be sufficient values for the given grid. Likewise, this holds for P and the filling of cells in PSCMS. Given the value M, the set N (or P ) is easily determined.
These definitions are used in Section 2 to explore properties of partial SCMSs relating to their completability, and for the identification of critical sets in Section 3. Section 4 provides definitions for unavoidable sets of SCMSs, and Section 5 establishes two families of unavoidable sets for SCMSs, and provides a complete classification for unavoidable sets of minimum PSCMSs of order 5. The paper concludes by providing open problems in this area.

2. Completability of Partial SCMS with Non-Empty Centre Cell

In this paper, the term partial SCMS denotes a partial grid with a non-empty centre cell, as given in Definition 8.
Definition 8.
A grid of order n is termed partial if between 1 and n 2 1 cells are non-empty, including the centre cell. The set of tuples ( i , j ) of the non-empty cells is denoted H n . When the non-empty cells have values such that the partial grid is completable to an SCMS then the set of triples ( i , j , a i j ) is denoted H n and termed a partial SCMS.
An example of a partial PSCMS of order 3 is given in Figure 2a.
Definition 9.
Let A n H be the set of all SCMSs to which H n can be completed. Hence, if | A n H | = 1 then H n is uniquely completable, and if | A n H | > 1 then H n is multiply completable.
Only partial grids which are partial SCMSs, H n , are considered in this paper; i.e., the partial grid is completable to an SCMS. Operations can be defined for assigning values, a i j , to empty cells. The terms strongly and weakly completable are used in a manner similar to the established definitions in the literature for related combinatorial structures [10].
Definition 10.
A cell of a partial SCMS, H n , is row-completable (or column-completable) if n 1 cells are non-empty in the given row (or column). A cell ( i , j ) is pairwise-completable if its paired cell ( i ¯ , j ¯ ) is non-empty.
Definition 11.
An empty cell ( i , j ) in a partial SCMS, H n , that can be filled uniquely using a row/column/pairwise completable operation is referred to as forced.
Definition 12.
A completable partial SCMS, H n , is termed a strong partial SCMS, H n s , if every empty cell becomes forced at some iteration of completion; otherwise, it is a weak partial SCMS, H n w .
Lemma 1.
A strong partial SCMS, H n s , is uniquely completable. A weak partial SCMS, H n w , is either uniquely or multiply completable.
Proof. 
From Definition 12, all empty cells in a strong partial SCMS, H n s , are forced; hence, there is only one way to complete the grid. A weak partial SCMS, H n w , has at least one cell which is not forced. For specific partial SCMSs, one or more given cells that are not forced can be completed in more than one way (one such example is given in Figure 3c). For other specific partial SCMSs with one or more given cells that are not forced, all such cells are completable in only one way (one such example is give in Figure 3a). □
Recall that grids of order 3 are here considered trivial SCMSs. Attention will be given first to SCMSs of order 3 before considering SCMSs of order 5 and of odd order n > 5 .
Lemma 2.
A partial SCMS of order 3, H 3 , with two non-empty, non-paired cells in the border, B 3 , including at least one corner cell, is strongly completable and hence uniquely completable.
Proof. 
Without loss of generality, assume the partial SCMS includes ( 1 , 1 , a 11 ) and one other non-paired triple, ( i , j , a i j ) , in addition to the centre cell triple ( 2 , 2 , a 22 ) .
If i = 1 (or j = 1 ), then the third cell in the row (or column) is forced completable and the row (or column) is completed, and hence ( 3 , k , a 3 , k ) for k = 1 , 2 , 3 are pairwise completable (or likewise for ( l , 3 , a l , 3 ) for l = 1 , 2 , 3 ). The remaining two cells are forced.
If i 1 and j 1 , then the paired cell of a i j is in either row 1 or column 1 and forced. Hence, the above argument applies. Hence, the grid is strongly completable and from Lemma 1 is uniquely completable. □
Corollary 1.
A partial SCMS of order 3, H 3 , with two non-empty non-paired cells in the border, B n , neither of which is a corner cell, is weakly and uniquely completable.
Proof. 
The paired cells of the two non-empty cells in the border are forced, leaving just the corner cells empty. When all corner cells are empty, no cell is forced, so the grid is not strongly completable. However, there is only one way of completing the four corners to satisfy the magic constant constraint of a magic square. □
Lemma 3.
A partial SCMS of order 3, H 3 , with fewer than two non-empty cells in the border, B 3 , is weakly completable and multiply completable.
Proof. 
Consider the case of a single non-empty corner cell, in addition to the centre cell. Without loss of generality, assume the partial SCMS includes ( 1 , 1 , a 11 ) ; hence, ( 3 , 3 , a 33 ) is pairwise completable and no other cell is immediately forced. There exist a 12 , a 13 N such that j = 1 3 a 1 j = 3 M and a 12 , a 13 are not paired, and a 21 , a 31 N such that i = 1 3 a i 1 = 3 M , a 21 , a 31 are not paired and a 31 = a ¯ 13 . As a 12 + a 13 = a 21 + a 31 , then, another completion of the partial SCMS exists in which both the paired values in positions ( 1 , 3 ) and ( 3 , 1 ) are permuted, and the non-paired values in positions ( 1 , 2 ) and ( 2 , 1 ) are permuted. Hence there are at least two completions, and therefore the SCMS is multiply completable.
Consider the case of a single non-empty, non-corner cell, in addition to the centre cell. Without loss of generality, assume the partial SCMS includes ( 1 , 2 , a 12 ) ; hence, ( 3 , 2 , a 32 ) is pairwise completable and no other cell is immediately forced. There exist three values in N summing to 3 M , with their complement values also summing to 3M, in order to form the first column and the third column, such that the column and row sums are satisfied. Each of these can be placed in either the first or the third column, and hence there are always at least two completions and therefore the SCMS is multiply completable.
With all cells empty, other than the centre cell, there are no fewer completions than in the cases above. □
Lemma 3 is illustrated for M = 251 in Figure 2, with a partial PSCMS of order 3, which is multiply completable, as shown in Figure 2a and its two equivalent completions shown in Figure 2b,c.
Corollary 2.
For a partial SCMS of order 3 to be strongly completable, it must contain at least two non-empty, non-paired cells, including at least one corner cell in addition to the centre cell.
Proof. 
Follows directly from Lemmas 2 and 3 and Corollary 1. □
From Lemma 1, a weak partial SCMS, H n w , is either uniquely or multiply completable, and an example of each case is given in Example 1 for n = 5 with M = 251 .
Example 1.
Figure 3a,c each show a partial PSCMS, H 5 , with M = 251 and a non-empty centre subsquare of order 3. In Figure 3a the triples ( 1 , 1 , 419 ) , ( 1 , 2 , 71 ) , ( 1 , 3 , 311 ) , ( 2 , 1 , 11 ) , ( 3 , 1 , 113 ) and their complement pairs are non-empty and highlighted. The empty cells A, B, C and their complements have only one completion, which is given in Figure 3b. In Figure 3c the triples ( 1 , 1 , 419 ) , ( 1 , 2 , 71 ) , ( 2 , 1 , 11 ) , ( 3 , 1 , 113 ) and their complement pairs are non-empty and highlighted. The empty cells A, B, C, D and their complements have two possible completions, given in Figure 3b,d.
Theorem 1.
For any partial SCMS, H n , of order n, n odd,
1. 
If H n is a strong partial SCMS, then it is uniquely completable.
2. 
If H n is multiply completable, then it is a weak partial SCMS.
3. 
If H n is a weak partial SCMS, then it is either uniquely completable or multiply completable.
4. 
If H n is uniquely completable, then it is either a strong or a weak partial SCMS.
Proof. 
1. This follows immediately from Lemma 1.
2.
If a grid is multiply completable, then it cannot be a strong partial SCMS, so it is a weak partial SCMS.
3.
This follows immediately from Lemma 1.
4.
From conditions 1 and 3, both strong and weak partial SCMSs can be uniquely completable.

3. Strong Partial SCMSs and Critical Sets of Partial SCMSs

Recall that H n s is the set of cells of a strong partial SCMS and that H n s is the set of triples of that strong partial SCMS.
Definition 13.
A minimal strong partial SCMS of order n, denoted H n s , m i n , is a strong partial SCMS of minimum cardinality.
There may be more than one minimal strong partial SCMS that completes to a given grid A n . Two examples of minimal strong partial SCMSs are given in Figure 4a,b which are both uniquely completable to the grid in Figure 4c. The cardinality of the minimal strong partial SCMS, H n s , m i n , is shown in Theorem 3.
The definition of a critical set in a Latin Square is given in [11] and a similar definition is given here for critical sets of SCMSs.
Definition 14.
A critical set, V n , of an SCMS, A n , of order n, is a set V n = { ( i , j , a i j ) | i , j { 1 , , n } , a i j N } such that
1. 
A n is the only SCMS of order n which has entry a i j in position ( i , j ) for all ( i , j , a i j ) V n ;
2. 
No proper subset of V n satisfies (1).
Definition 14 can be re-expressed as Definition 15.
Definition 15.
A critical set V n is a partial SCMS that is uniquely completable to an SCMS A n , i.e., | A n V | = 1 , and is such that if any triple is removed from V n , the resulting partial SCMS is multiply completable; i.e., for any H n V n , | A n H | > 1 .
Definition 16.
A critical set, V n , is termed a strong critical set if it is also a strong partial SCMS, H n s ; else it is a weak critical set.
Definition 17.
A minimal critical set of an SCMS of order n, A n , denoted as V n m i n , is a critical set of minimum cardinality.
Let V n denote the set of cells of a critical set, V n , and let V n A be the set of all critical sets of A n . Consider V n m i n V n A such that V n V n A , | V n m i n | | V n | , and hence V n m i n is a minimal critical set of A n . There may be more than one minimal critical set of a given SCMS.
Remark 1 follows immediately from Definition 14, using strong completability or weak completability.
Remark 1.
A critical set, V n , describes a partial SCMS, H n , which is uniquely completable.
A comparison of the cardinality of the minimal strong partial SCMS, H n s , m i n , and the cardinality of the minimal critical set, V n m i n , of an SCMS of order n, n odd, are now given, and the cardinality of the minimal strong partial SCMS of order n, n odd, is then calculated. Bounds are given for the cardinality of a minimal critical set of an SCMS of order n, n odd.
Lemma 4.
| V n m i n | | H n s , m i n | .
Proof. 
Every strong partial SCMS is either a critical set or contains a critical set. □
Theorem 2.
A minimal strong partial SCMS of order n has 2 j 4 non-empty cells in the border of each square of order j, j = 3 , 5 , , n , and in each of these borders, there is at most one cell of any non-empty border pair and at least one non-empty corner cell.
Proof. 
Recall that the centre cell is non-empty.
Suppose that for each border of a partial SCMS, all corner cells are empty, and suppose that all non-corner cells in one row and one column of each border are non-empty. Then, each border of order j contains 2 j 4 non-empty cells. All empty non-corner cells are pairwise completable, but the corner cells are not forced. Such a grid is not a strong partial SCMS.
Suppose that for each border of a partial SCMS, one corner cell is non-empty, and suppose that 2 j 6 non-corner, non-paired cells are non-empty. By Definition 11, 2 j 5 empty cells of each border are forced, but two pairs are not forced, and these are non-corner cells. From the permutation operations, Table 1, these are not uniquely completable.
Lastly, suppose that for each border of a partial SCMS, one corner cell is non-empty, and suppose that 2 j 5 non-corner, non-paired cells are non-empty. By Definition 11, all non-empty cells of each border are forced. □
Corollary 3.
If an SCMS of order n, n odd, exists, then | H n s , m i n | = 2 n 4 + | H n 2 s , m i n | where | H 1 s , m i n | = 1 .
Proof. 
The proof follows immediately from Theorem 2. □
It is noted that | H n s , m i n | , n odd, follows the integer sequence A058331 [12], a ( x ) = 2 x 2 + 1 .
Theorem 3.
If an SCMS of order n, n odd, exists, then | H n s , m i n | = 1 2 ( n 2 2 n + 3 ) .
Proof. 
From Theorem 2, for j odd, j = ( 2 i + 1 ) where i = 1 , , n 1 2 , the size of the set of non-empty cells in the outer border or the order j grid, Z j , is | Z j | = 2 j 4 = 2 ( 2 i + 1 ) 4 = 4 i 2 . Hence, j = 1 n 1 2 | Z j | = 4 i = 1 n 1 2 i i = 1 n 1 2 2   = 4 2 ( n 1 2 ) ( n 1 2 + 1 )   ( n 1 ) = 1 2 ( n 2 2 n + 1 ) . Since the centre cell is not included in a border but is always non-empty, then | H n s , m i n | = j = 3 n | Z j | + 1 and hence | H n s , m i n | = 1 2 ( n 2 2 n + 3 ) . □
Theorem 4.
Given an SCMS of order n, n odd, n 5 , the size of the minimal critical set, | V n m i n | , satisfies 1 2 ( n 2 4 n + 9 ) | V n m i n | 1 2 ( n 2 2 n + 3 ) .
Proof. 
First consider the upper bound of the size of the minimal critical set, from Lemma 4 | V n m i n | | H n s , m i n | and from Theorem 3 | H n s , m i n | = 1 2 ( n 2 2 n + 3 ) .
Now consider an SCMS of order 3; from Lemma 2 and Corollary 1 there are two non-empty cells in the border for the grid to be uniquely completable. Hence, a critical set contains no fewer than two triples, and with the inclusion of the centre cell value contains three triples. When n = 3 , | H 3 s , m i n | = 3 and hence there are exactly three non-empty cells for the minimal critical set, | V 3 m i n | = 3 .
For j odd, j = ( 2 i + 3 ) where i = 1 , , n 3 2 , the borders of order j of the centre subsquares and the outer border ( j = n ) of the SCMS of order n each have 4 j 4 cells. For an SCMS of order n, n > 3 , 2 j 6 non-empty cells are required in each border for the SCMS to be uniquely completable; else it is multiply completable due to the permutation operations in Table 1. Hence, | Z j | = 2 j 6 = 2 ( 2 i + 3 ) 6 = 4 i . Hence, j = 1 n 1 2 | Z j | = 4 i = 1 n 3 2 i = 4 2 ( n 3 2 ) ( n 3 2 + 1 ) , giving j = 1 n 1 2 | Z j | = 1 2 ( n 2 4 n + 3 ) .
The centre subsquare of order 3 has three non-empty cells, and hence | V n m i n | = j = 5 n | Z j | + 3 , and thus | V n m i n | = 1 2 ( n 2 4 n + 9 ) . □
Construction 1.
Take an empty grid of order 3 and fill in the centre cell to form a valid partial SCMS. Secondly, place one value in a corner to form a valid partial SCMS. Thirdly, place a further value in any cell that is not paired with that of the previously placed value to form a valid partial SCMS.
Theorem 5.
A strong partial SCMS of order 3 that is also a minimal critical set is specified by a partial grid obtained by Construction 1.
Proof. 
Using Construction 1, the number of non-empty cells is 3, which satisfies 1 2 ( n 2 2 n + 3 ) , which is both the size of the minimal strong partial SCMS and the upper bound of the size of the minimal critical set. If either of the values in the border are removed, then the resulting grid is multiply completable, and hence the remaining triples do not form a critical set nor a strong partial SCMS. □
Without loss of generality, let the two non-empty cells of a partial SCMS of order 3, specified in Construction 1, be the cells ( 1 , 1 ) and ( 1 , 2 ) illustrated using a PSCMS in Figure 5a with its completion given in Figure 5b. Hence, | V 3 m i n | = 3 , which satisfies the upper bound of Theorem 4.
All critical sets of different sizes in Latin Squares of order at most 6, with their cardinality, are given in [13]. The cardinality of all minimal critical sets, | V n m i n | , of an SCMS of order n, n odd, with known M and hence known P , can be determined. For illustration, the SCMSs of order 5 (which are also minimum PSCMSs) have been taken from [6], and the cardinality of their minimal critical sets is given.
Theorem 6.
The cardinality of all minimal critical sets of an SCMS of order 5 is | V 5 m i n | = 7 , which satisfies 1 2 ( n 2 4 n + 9 ) , the lower bound of Theorem 4.
Proof. 
Suppose for contradiction there are six non-empty cells, including the centre cell. Given any SCMS, suppose there are six non-empty cells, including the centre cell. It can be clearly seen using the permutation operations in Table 1 that, irrespective of which cells are non-empty, the grid is multiply completable, and hence the non-empty cells do not form a critical set. An example of a critical set of size 7 of an SCMS of order 5 (which is also a minimum PSCMS) is given in Figure 6, and hence the cardinality of the minimal critical set of an SCMS of order 5 is 7. □
Theorem 6 will be useful for the classification of unavoidable sets of PSCMS of order 5 in Section 5.
While the concepts of strong and weak critical sets are extended above from the literature on Latin Squares to SCMS, a further concept of ‘totally weak’ critical sets [10] (where no cell is initially forced) does not apply. Consider an SCMS with a valid centre cell value, the completion of any single cell results in a forced cell completion by a pairwise-completion operation. A set containing only the centre cell is not a critical set as the partial grid so defined is not uniquely completable. If both values in paired cells are non-empty and the grid is uniquely completable, then one of the values can be removed and the grid is still uniquely completable, and so the filled cells do not form a critical set. Hence, the concept of a totally weak critical set does not exist for any SCMS.

4. Unavoidable Sets of SCMSs

Consider the two SCMS given in Figure 7. Now consider the shaded cells to be empty, forming partial grids; each of the grids so formed is multiply completable. Consider the partial SCMS corresponding to Figure 7a, and assume now that exactly one of the shaded cells is non-empty; then, the resulting partial grid is uniquely completable. Similarly, consider the partial SCMS corresponding to Figure 7b, and assume now that exactly one of the shaded cells is non-empty. In this case, the resulting partial grid is either uniquely completable or multiply completable to SCMSs that are equivalent. Sets of cells that have these properties are referred to as unavoidable sets. Figure 7a provides an example of a proper unavoidable set, since the addition of one non-empty cell results in the partial SCMS being uniquely completable. Figure 7b provides an example of an improper unavoidable set since the addition of one non-empty cell results in a partial SCMS which is either uniquely completable or multiply completable to SCMSs that are equivalent. Formal definitions for these are given in Definition 18.
Recall that H n denotes the non-empty cells of the partial SCMS, H n . Correspondingly, denote by H n the set of empty cells. Unavoidable sets are considered in the literature on Latin Squares, Sudoku, and magic squares (e.g., [14]). Similar to Sudoku [5], we formally define an unavoidable set of an SCMS.
Definition 18.
An unavoidable set, D n , of an SCMS, A n , is such that the partial SCMS, H n , for which H n = A n \ D n , is multiply completable, i.e., | A n H | > 1 and either
1. 
The addition to H n of any triple ( i , j , a i , j ) A n , where ( i , j ) D n , produces a partial SCMS, G n , which is uniquely completable; or
2. 
The addition to H n of any triple ( i , j , a i , j ) A n where ( i , j ) D n , produces a partial SCMS, G n , which is either multiply completable to SCMS that are equivalent or possibly, for certain choices of triple ( i , j , a i , j ) , uniquely completable.
It follows that D n A n , where A n is the set of cells corresponding to A n . Note that there is no set of triples, D n , corresponding to the set of cells, D n , as the cells are empty and hence the values in the cells of D n are not defined.
A given SCMS can have more than one unavoidable set, and these sets can overlap. Strictly, unavoidable sets are sub-structures that are present in all of the SCMSs to which a given partial grid completes.
For the purpose of classifying unavoidable sets, this paper will explore these sets in relation to completability of partial grids.
Definition 19.
An unavoidable set is here considered a proper unavoidable set if it conforms to condition 1 of Definition 18. An unavoidable set is here considered an improper unavoidable set if it conforms to condition 2 of Definition 18.
In cases of proper unavoidable sets, A n H contains non-equivalent and equivalent completions of the partial grid H n , and the addition of a further triple constrains the completion either to a unique grid or to only multiple equivalent grids in A n H . In cases of improper unavoidable sets, A n H contains multiple completions of the partial grid, H n , which are non-equivalent, equivalent or both, and the addition of a further triple constrains the completion to a unique grid in A n H .
Definition 20.
A partial SCMS, H n , completable to any A n A n H , may contain cells that are forced and completable and a number of unavoidable sets. Let the set of unavoidable sets of a partial SCMS, H n , be D n H , and so D n D n H D n H n .
This paper does not address overlapping unavoidable sets as it is not beneficial in classifying the forms of unavoidable sets. Only partial SCMSs with a set of empty cells that correspond to a single unavoidable set of all grids in A n H are considered.
Recall from critical sets and strong partial SCMSs that whenever one half of a complement pair is included in a partial SCMS, its partner is immediately forced. For the purpose of the following analysis of unavoidable sets, it is assumed that for any partial SCMS considered, either both triples of a given complement pair are included or neither are. Hence any unavoidable set will be a collection of paired cells.
Corollary 4.
Any two empty, non-corner cells in any single row or column of a border of an SCMS of order n, n 5 , (with their paired cells also empty) form a proper unavoidable set.
Proof. 
From Table 1, the values in the paired cells in rows (columns) 2 , , n 1 of the grid can be permuted to form another valid completion, and hence the cells form an unavoidable set. By fixing any one valid value in an empty cell, the grid is uniquely completable, so the cells form a proper unavoidable set. □
To illustrate two separate proper unavoidable sets, an SCMS of order larger than 5 is required. A normal SCMS of order 7 from [15] is used in Figure 8, the first proper unavoidable set is in the border of order 7 (highlighted blue) and the second is in the border of order 5 (highlighted grey).

5. Classification of Unavoidable Sets of Order 5

Different patterns of empty cells are now explored on partial PSCMSs of order 5, completable to minimum PSCMSs, where the interest is in the minimum number of empty cells in a given form of unavoidable set (defined below). There are two forms of proper unavoidable sets and an additional three forms of improper unavoidable sets that are identified for SCMSs of order 5. These are identified within the minimum PSCMSs of order 5 given in [6], and a complete classification for these structures is provided in Section 5.1 and Section 5.2.
Forms 1 and 2 are proper unavoidable sets (Definitions 21 and 22) and define patterns of empty cells that are mutually exclusive. Likewise, Forms 3, 4 and 5 are improper unavoidable sets (Definitions 23–25) and define patterns of empty cells that are mutually exclusive to each other and to those patterns of proper unavoidable sets. It is possible that, for multiple patterns of empty cells, the corresponding partial grids complete to the same PSCMSs. That is, two partial PSCMSs with different patterns of empty cells could have one or more of their completions in common. Given a PSCMS with fixed prime M, P denotes the set of all primes that can be paired to sum to 2 M .
Every minimum PSCMS of order 5 has M = 251 . There are thirteen pairs of primes summing to 2M, | P | = 26 , with twelve needed for a grid. There are two non-equivalent centre subsquares, and for the first centre subsquare (denoted centre subsquare 1, Figure 9a), there are six different lists of twelve pairs of primes that form a minimum PSCMS of order 5, and for the second centre subsquare (denoted centre subsquare 2, Figure 9b), there are nine different lists of twelve pairs of primes that form a minimum PSCMS of order 5.
Each grid with either centre subsquare 1 or 2 and its corresponding list of primes is referred to as a type, and hence, there are six types with centre subsquare 1 and nine types with centre subsquare 2. These types are given in Table 2. There are 35 non-equivalent grids and 80,640 grids in total; a full enumeration can be found at [6].

5.1. Proper Unavoidable Sets of Minimum PSCMSs of Order 5

Definition 21.
Consider a partial PSCMS of order 5, H 5 , such that all empty cell tuples form a single unavoidable set and are located within the outer border. If all the multiple completions of H 5 , in A 5 H , use a single subset of P and are equivalent using the permutations of paired cells in columns 2 , 3 , 4 of the grid or the permutations of paired cells in rows 2 , 3 , 4 of the grid (from Table 1), then the unavoidable set is defined to be of Form 1 denoted D 5 H , 1 .
An unavoidable set of Form 1 is given in Figure 10 in a minimum PSCMS of order 5.
Example 2.
Figure 10 shows a partial PSCMS, multiply completable to minimum PSCMSs of order 5, with a Form 1 unavoidable set of size 4 in cells ( 1 , 2 ) , ( 1 , 3 ) , ( 5 , 2 ) , ( 5 , 3 ) and its two equivalent completions.
The completions shown in Figure 10b,c are equivalent, using the same 24 border pairs. The addition of any triple to the partial PSCMS in Figure 10a determines a unique completion, and hence the empty cells describe a proper unavoidable set.
Lemma 5.
An unavoidable set of Form 1 is a proper unavoidable set.
Proof. 
A Form 1 unavoidable set satisfies Definition 19 and hence condition 1 of Definition 18. □
Theorem 7.
If the empty cells of a partial PSCMS, H 5 , completable to a minimum PSCMS, are an unavoidable set of Form 1, D 5 H , 1 , then | D 5 H , 1 | = 4 , and partial PSCMSs of order 5 exist that contain such unavoidable sets of size 4.
Proof. 
Consider first a partial PSCMS of order 5 with fewer than four empty cells; it is uniquely completable. Next consider a partial PSCMS of order 5 with exactly four empty cells: the addition of any triple determines a unique completion. Finally, consider a partial PSCMS of order 5 with more than four empty cells; the addition of a triple does not guarantee a uniquely completable grid. An example of an unavoidable set, D 5 H , 1 , for which | D 5 H , 1 | = 4 is given in Figure 10. □
Definition 22.
Consider a partial PSCMS of order 5, H 5 , such that all empty cell tuples form a single unavoidable set and are located within the outer border. If all the multiple completions of H 5 , in A 5 H , are non-equivalent and each completion uses a different subset of P , then the empty cell tuples form an unavoidable set of Form 2 denoted D 5 H , 2 .
An unavoidable set of Form 2 is given in Example 3 in a minimum PSCMS of order 5.
Example 3.
Figure 11 shows a partial PSCMS, multiply completable to a minimum PSCMS of order 5, with a Form 2 unavoidable set of size 6 in cells ( 1 , 4 ) , ( 1 , 5 ) , ( 4 , 1 ) , ( 4 , 5 ) , ( 5 , 1 ) , ( 5 , 4 ) and its two non-equivalent completions.
The completions shown in Figure 11b,c are non-equivalent and use different subsets of P . The addition of any triple to the partial PSCMS in Figure 11a determines a unique completion, and hence the empty cells describe a proper unavoidable set.
Lemma 6.
An unavoidable set of Form 2 is a proper unavoidable set.
Proof. 
A Form 2 unavoidable set satisfies Definition 19 and hence condition 1 of Definition 18. □
Theorem 8.
If the empty cells of a partial PSCMS, H 5 , completable to a minimum PSCMS, are an unavoidable set of Form 2, D 5 H , 2 , then | D 5 H , 2 | 6 , and partial PSCMSs of order 5 exist that contain such unavoidable sets of size 6.
Proof. 
Consider first a partial PSCMS, completable to minimum PSCMS of order 5, with fewer than six empty cells. Assume for contradiction that the grid has four empty cells; then, either it is uniquely completable and hence the cells do not form an unavoidable set, or it is a Form 1 unavoidable set. Now assume that the grid has any fewer than four empty cells; then, it does not contain an unavoidable set as the grid is uniquely completable. An example of an unavoidable set, D 5 H , 2 , for which | D 5 H , 2 | = 6 is given in Figure 11. □

5.2. Improper Unavoidable Sets of Minimum PSCMSs of Order 5

Definition 23.
Consider a partial PSCMS of order 5, H 5 , such that all empty cell tuples form a single unavoidable set and are located in both the outer border and the centre subsquare of order 3. For the empty cell tuples to form an unavoidable set of Form 3, denoted D 5 H , 3 , then all completions of H 5 , in A 5 H , that use the same subset of P are equivalent. There are also completions of H 5 , in A 5 H , that use different subsets of P , and hence these are non-equivalent.
It follows that a partial PSCMS, completable to a minimum PSCMS of order 5, having a single unavoidable set of Form 3 will have multiple equivalent and non-equivalent completions and trivially all completions that have different centre subsquares of order 3 are non-equivalent. Figure 12a shows a minimal unavoidable set of Form 3 in a minimum PSCMS of order 5. If a minimum PSCMS of order 5 has a Form 3 unavoidable set, then there are empty cells in both the border of order 3 and the border of order 5. The fixing of any empty cell either gives a uniquely completable partial PSCMS or it gives a multiply completable partial PSCMS where all completions are equivalent.
Example 4.
Figure 12 shows a partial PSCMS, multiply completable to a minimum PSCMS of order 5, with a Form 3 unavoidable set of size 12 in cells ( 1 , 3 ) , ( 1 , 5 ) , ( 2 , 2 ) , ( 2 , 3 ) , ( 2 , 4 ) , ( 3 , 1 ) , ( 3 , 5 ) , ( 4 , 2 ) , ( 4 , 3 ) , ( 4 , 4 ) , ( 5 , 1 ) , ( 5 , 3 ) and its two non-equivalent completions. The multiple equivalent completions are not given.
The completions shown in Figure 12b,c are non-equivalent and use different subsets of P . The addition of any triple to the partial PSCMS in Figure 12a determines either a unique completion or multiple equivalent completions, and hence the empty cells describe an improper unavoidable set.
Lemma 7.
An unavoidable set of Form 3 is an improper unavoidable set.
Proof. 
A Form 3 unavoidable set satisfies Definition 19 and hence condition 2 of Definition 18. □
Example 5.
Figure 13a shows a partial PSCMS, multiply completable to a minimum PSCMS of order 5, with a Form 3 unavoidable set of size 12. Figure 13b shows, in yellow, the triple (1, 3, 41) added to the grid in (a), and its two equivalent completions are given in Figure 13c,d. Figure 13e shows, in yellow, the triple (2, 2, 431) added to the grid in (a) and its unique completion is given in Figure 13f. Hence the unavoidable set is improper.
Theorem 9.
If the empty cells of a partial PSCMS, H 5 , completable to a minimum PSCMS, are an unavoidable set of Form 3, D 5 H , 3 , then | D 5 H , 3 | 12 , and a partial PSCMS of order 5 exist that contain such unavoidable sets of size 12.
Proof. 
There are exactly two possible centre subsquares for the minimum PSCMS of order 5, and these differ by three pairs. Hence, in order for the centre subsquare to have more than one unique completion, there must be six empty cells in the centre subsquare of order 3. If there are fewer than four empty cells (two pairs) in the border, then all empty cells are forced, and hence the border is uniquely completable, and therefore the grid is uniquely completable.
For the minimum PSCMS of order 5, | P | = 26 , so each grid uses twelve pairs out of a possible thirteen, and hence each subset can only differ by one pair [6]. If there are exactly four empty cells in the border, then either the grid is uniquely completable or all multiple completions of the grid are equivalent. An example of a Form 3 unavoidable set of size 12 is given in Figure 12, and hence, the smallest cardinality of a Form 3 unavoidable set is 12. □
Definition 24.
Consider a partial PSCMS of order 5, H 5 , such that all empty cell tuples form a single unavoidable set and are located within the outer border. For the empty cell tuples to form an unavoidable set of Form 4, denoted D 5 H , 4 , then all completions use the same subset of P for each of the multiple equivalent and non-equivalent completions in A 5 H .
From Definition 24, the multiple completions in A 5 H are always a mix of equivalent and non-equivalent completions, but the addition of any triple always results in a partial grid that has multiple equivalent completions.
Example 6 shows a minimal unavoidable set of Form 4 in a minimum PSCMS of order 5. Like Form 1 and Form 2, Form 4 unavoidable sets comprise cells entirely in the of order 5 and contain the minimum number of empty cells in a border for there to be multiple completions such that at least two are non-equivalent and the list of primes is fixed.
Example 6.
Figure 14 shows a partial PSCMS, multiply completable to minimum PSCMS of order 5, with a Form 4 unavoidable set of size 8 in cells ( 1 , 2 ) , ( 1 , 3 ) , ( 2 , 1 ) , ( 2 , 5 ) , ( 4 , 1 ) , ( 4 , 5 ) , ( 5 , 2 ) , ( 5 , 3 ) and its two non-equivalent completions. The multiple equivalent completions are not given.
The completions shown in Figure 14b,c are non-equivalent and use the same subset of P . The addition of any triple to the partial PSCMS in Figure 14a determines multiple equivalent completions, and hence the empty cells describe an improper unavoidable set.
Lemma 8.
An unavoidable set of Form 4 is an improper unavoidable set.
Proof. 
A Form 4 unavoidable set satisfies Definition 19 and hence condition 2 of Definition 18. □
Example 7.
Figure 15a shows a partial PSCMS, multiply completable to a minimum PSCMS of order 5, with a Form 4 unavoidable set of size 8. Figure 15b shows, in yellow, the triple (1, 2, 11) added to the grid in (a), and its two equivalent completions are given in Figure 15c,d. Hence the unavoidable set is improper.
Theorem 10.
If the empty cells of a partial PSCMS, H 5 , completable to a minimum PSCMS, are an unavoidable set of Form 4, D 5 H , 4 , then | D 5 H , 4 | 8 , and partial PSCMSs of order 5 exist that contain such unavoidable sets of size 8.
Proof. 
Consider first a partial PSCMS, completable to minimum PSCMS of order 5, with fewer than six empty cells. If the grid has four empty cells, then either it is uniquely completable, and hence the cells do not form an unavoidable set, or it has a Form 1 unavoidable set. Any fewer than four cells can never be an unavoidable set as the grid is always uniquely completable. If the partial PSCMS had exactly six empty cells, then it is immediately uniquely completable, or it is completable only to equivalent grids, as the subset of P is fixed. An example of an unavoidable set, D 5 H , 4 , for which | D 5 H , 4 | = 8 is given in Figure 14. □
Definition 25.
Consider a partial PSCMS of order 5, H 5 , such that all empty cell tuples form a single unavoidable set and are located in both the outer border and the centre subsquare of order 3. For the empty cell tuples to form an unavoidable set of Form 5, denoted D 5 H , 5 , then all completions use the same subset of P . PSCMS may be formed using both centre subsquares. All PSCMSs with the same centre subsquare are equivalent.
All grids with Form 5 unavoidable sets have completions using both centre subsquares, and trivially, all pairs of completions using different centre subsquares are non-equivalent. As with Form 4, the multiple completions in A 5 H will always be a mix of equivalent and non-equivalent completions, but the addition of any triple always results in a partial grid that has multiple equivalent completions.
Example 8.
Figure 16 shows a partial PSCMS, multiply completable to a minimum PSCMS of order 5, with a Form 5 unavoidable set of size 14 in cells ( 1 , 2 ) , ( 1 , 4 ) , ( 2 , 2 ) , ( 2 , 3 ) , ( 2 , 4 ) , ( 3 , 1 ) , ( 3 , 5 ) , ( 4 , 1 ) , ( 4 , 2 ) , ( 4 , 3 ) , ( 4 , 4 ) , ( 4 , 5 ) , ( 5 , 2 ) , ( 5 , 4 ) and its two non-equivalent completions. The multiple equivalent completions are not given.
The completions shown in Figure 16b,c are non-equivalent and use the same subset of P . The addition of any triple to the partial PSCMS in Figure 16a determines multiple equivalent completions, and hence the empty cells describe an improper unavoidable set. A further, detailed analysis of minimal Form 5 unavoidable sets in the minimum PSCMS of order 5 is now given.
Lemma 9.
An unavoidable set of Form 5 is an improper unavoidable set.
Proof. 
A Form 5 unavoidable set satisfies Definition 19 and hence condition 2 of Definition 18. □
Example 9.
Figure 17a shows a partial PSCMS, completable to a minimum PSCMS of order 5, with a Form 5 unavoidable set of size 14. Figure 17b shows, in yellow, the triple (1, 2, 71) added to the grid in (a), and its four equivalent completions are given in Figure 17c–f. Hence the unavoidable set is improper.
Lemma 10.
If a partial PSCMS, H 5 , completable to a minimum PSCMS, contains an unavoidable set of Form 5, D 5 H , 5 , then | D 5 H , 5 | 12 .
Proof. 
There exist two unique centre subsquares of order 3 for the minimum PSCMS of order 5, and these centre subsquares consist of the centre cell value M and four pairs of complement primes, one of which is common to both centre subsquares. Hence, the existence of completions using both centre subsquares requires that three paired cells (six cells) are empty in the centre subsquare and three paired cells (six cells) in the border are empty. Therefore, at least twelve cells are empty. If fewer cells are empty in the border, since all completions use the same subset of P then the partial grid is completable only to equivalent grids. □
If three pairs of cells are empty in the centre subsquare of order 3 and three pairs are empty in the border, there are five distinctly different patterns in which these empty cells could be arranged, shown in Figure 18, where the grey cells have values and the white cells are empty. It will now be shown that none of these patterns of twelve empty cells can form a Form 5 unavoidable set.
Lemma 11.
There is no unavoidable set of Form 5, D 5 H , 5 , such that | D 5 H , 5 | = 12 .
Proof. 
It can easily be seen that the pattern relating to Case 1 in Figure 18 is always completable only to equivalent grids since it contains a forced completable cell in the border. Likewise for Case 2. Now considering Cases 3, 4 and 5, for every pattern of empty cells, where M = 251 , either the partial grid is completable only to equivalent grids or the multiple completions use different lists of primes. Hence there are no Form 5 unavoidable sets in any minimum PSCMS of order 5 having only twelve empty cells. □
Theorem 11.
If the empty cells of a partial PSCMS, H 5 , completable to a minimum PSCMS, are an unavoidable set of Form 5, D 5 H , 5 , then | D 5 H , 5 | 14 , and partial PSCMSs of order 5 exist that contain such unavoidable sets of size 14.
Proof. 
From Lemmas 10 and 11, | D 5 H , 5 | > 12 . Since an unavoidable set consists of paired cells, then | D 5 H , 5 | 14 , and an example of an unavoidable set of Form 5 consisting of 14 cells is given in Example 8. □
Theorem 12.
If a partial PSCMS, H 5 , completable to a minimum PSCMS, contains an unavoidable set of:
1. 
Form 1, the minimum cardinality of the unavoidable set is 4.
2. 
Form 2, the minimum cardinality of the unavoidable set is 6.
3. 
Form 3, the minimum cardinality of the unavoidable set is 12.
4. 
Form 4, the minimum cardinality of the unavoidable set is 8.
5. 
Form 5, the minimum cardinality of the unavoidable set is 14.
Proof. 
This follows from Theorems 7–11. □
It can be noted that, from Definition 12, a strong partial SCMS, H n s , is a set of triples such that the partial SCMS, H n , so defined is strongly completable. A strong partial SCMS ensures that there are no possible unavoidable sets of any form in the partial completable grid. If this is not the case, then the grid is not strongly completable. Hence, any strong partial SCMS includes at least one triple from every possible unavoidable set.
If a partial PSCMS, completable to minimum PSCMS of order 5, contains a single Form 5 unavoidable set, then it has completions including both centre subsquares of order 3, shown in Figure 9. The requirement to use the same subset of P to complete the grid restricts the completions to two non-equivalent grids, one of which has centre subsquare 1 (Figure 9a) and the other has centre subsquare 2 (Figure 9b). This establishes a relationship between pairs of specific types, described in this section. The following Lemma establishes which types cannot be in such a pairing, and Theorem 13 specifies all valid pairings.
Recall from the start of this section that for centre subsquare 1, there are six different lists of primes, referred to here as types of centre subsquare 1, and for centre subsquare 2, there are nine different lists of primes, referred to here as types of centre subsquare 2, that can be used to form minimum PSCMS of order 5. In order for a partial PSCMS, completable to minimum PSCMS of order 5, to contain a single Form 5 unavoidable set, the subset P used to complete the grid must be a valid list of primes for both a grid with centre subsquare 1 and a grid with centre subsquare 2.
Lemma 12.
No unavoidable set of Form 5 exists in five types of minimum PSCMSs of order 5.
Proof. 
For all minimum PSCMSs of order 5, P = {11, 23, 41, 53, 59, 71, 83, 101, 113, 149, 191, 233, 239, 263, 269, 311, 353, 389, 401, 419, 431, 443, 449, 461, 479, 491}.
For one type of centre subsquare 1, the omitted pair is ( 71 , 431 ) , which occurs in centre subsquare 2. For three types of centre subsquare 2, the omitted pairs are ( 233 , 269 ) , ( 41 , 461 ) and ( 23 , 479 ) , respectively, which all occur in centre subsquare 1. For one type of centre subsquare 2, the omitted pair is ( 101 , 401 ) , which is not found in centre subsquare 1, but it is in every subset of primes for each grid with centre subsquare 1. Hence an unavoidable set of Form 5 does not exist in these types. □
Theorem 13.
Form 5 unavoidable sets exist in ten types of minimum PSCMSs of order 5.
Proof. 
For all minimum PSCMSs of order 5, P = {11, 23, 41, 53, 59, 71, 83, 101, 113, 149, 191, 233, 239, 263, 269, 311, 353, 389, 401, 419, 431, 443, 449, 461, 479, 491}.
Consider a partial PSCMS, H 5 , completable to minimum PSCMS, with an unavoidable set of Form 5. If H 5 is completable using P , and if the omitted pair from P is any of the following five pairs, ( 149 , 353 ) , ( 53 , 449 ) , ( 11 , 491 ) , ( 191 , 311 ) , ( 113 , 389 ) , then | A 5 H | > 2 with exactly two non-equivalent completions, one of which is a minimum PSCMS of order 5 with centre subsquare 1, and the other a minimum PSCMS of order 5 with centre subsquare 2. □

6. Conclusions

This paper provides foundational and theoretical underpinnings for SCMSs and PSCMSs. The concepts of critical sets and unavoidable sets previously defined for Latin Squares and Sudoku are defined for SCMSs, and two families of unavoidable sets of SCMSs are established. A full classification is given for unavoidable sets of minimum PSCMSs of order 5.
The definitions and results offer much scope for further work in this area. It remains an open problem whether there exist SCMSs with minimal critical set cardinality of 7 which are not also minimum PSCMSs. Another open problem is to determine how many unavoidable sets of different sizes exist on PSCMSs of higher orders. One trivial result is provided by Lemma 13.
Lemma 13.
If the empty cells of a partial PSCMS, H n , are an unavoidable set of Form 1, D n H , 1 , then | D n H , 1 | = 4 .
Proof. 
Consider first a partial PSCMS with fewer than four empty cells; it is uniquely completable. Next consider a partial PSCMS with exactly four empty cells: the addition of any triple determines a unique completion. Finally, consider a partial PSCMS with more than four empty cells; the addition of a triple does not guarantee a uniquely completable grid. □
Similar to puzzles being constructed from Sudoku and Latin Square grids, puzzles may be constructed from SCMSs and PSCMSs, utilising their strong structural features and knowledge of their unavoidable sets to minimise the number of clues (filled cells) provided [16]. Applications of completable partial grids in Latin Squares and Sudoku to codes, cryptography and experimental design are well established in the literature [17,18,19]. Recently, applications of magic squares to cryptography, have also been identified as being of interest [20], and the current authors intend that the foundational material provided in this paper both enable and encourage further work in applications of SCMSs and PSCMSs.

Author Contributions

Conceptualization, S.P. and P.A.R.; methodology, A.L.S., S.P. and P.A.R.; validation, S.P. and P.A.R.; formal analysis, A.L.S., S.P. and P.A.R.; investigation, A.L.S.; writing—original draft preparation, A.L.S.; writing—review and editing, S.P. and P.A.R.; visualization, A.L.S., S.P. and P.A.R.; supervision, S.P. and P.A.R.; project administration, S.P. and P.A.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
NMSNormal Magic Square
CMSConcentric Magic Square
SCMSStrictly Concentric Magic Square
PSCMSPrime Strictly Concentric Magic Square

References

  1. Johnson, L.; Perkins, S. A discussion of a cryptographical scheme based in F-critical sets of a Latin square. Mathematics 2021, 9, 285. [Google Scholar] [CrossRef]
  2. Kuhl, J.; Denley, T. Constrained completion of partial latin squares. Discret. Math. 2012, 312, 1251–1256. [Google Scholar] [CrossRef]
  3. Keedwell, A.D. Defining sets for magic squares. Math. Gaz. 2006, 90, 417–424. [Google Scholar] [CrossRef]
  4. Williams, D.J.; Jones, S.K.; Roach, P.A.; Perkins, S. Blocking Intercalates In Sudoku Erasure Correcting Codes. IAENG Int. J. Comput. Sci. 2011, 38, 183–191. [Google Scholar]
  5. McGuire, G.; Tugerman, B.; Civario, G. There Is No 16-Clue Sudoku: Solving the Sudoku Minimum Number of Clues Problem via Hitting Set Enumeration. Exp. Math. 2014, 23, 190–217. [Google Scholar] [CrossRef]
  6. Skelt, A.L.; Perkins, S.; Roach, P.A. Prime Strictly Concentric Magic Squares of Odd Order. Mathematics 2025, 13, 1261. [Google Scholar] [CrossRef]
  7. Keedwell, A.D. Two remarks about sudoku squares. Math. Gaz. 2006, 90, 425–430. [Google Scholar] [CrossRef]
  8. Andrews, W.S. Magic Squares and Cubes, 2nd ed.; Dover: New York, NY, USA, 1960. [Google Scholar]
  9. Makarova, N. Concentric Magic Squares of Primes. Primes Magic Games. Available online: http://primesmagicgames.altervista.org/wp/forums/topic/concentric-magic-squares-of-primes/ (accessed on 24 January 2025).
  10. Keedwell, A.D.; Denes, J. Latin Squares and Their Applications; Elsevier: Amsterdam, The Netherlands, 2015. [Google Scholar]
  11. Cooper, J.; Donovan, D.; Seberry, J. Latin squares and critical sets of minimal size. Australas. J. Comb. 1991, 4, 113–120. [Google Scholar]
  12. Friedman, E. A058331. The Online Encyclopedia of Integer Sequences. Available online: https://oeis.org/A058331 (accessed on 15 April 2025).
  13. Adams, P.; Bean, R.; Khodar, A. A Census of Critical Sets in the Latin Squares of Order at Most Six. Ars Comb. 2003, 68, 203–223. [Google Scholar]
  14. Cutler, J.; Öhman, L. Latin Sqaures with Forbidden Entries. Electron. J. Comb. 2006, 13, R47. [Google Scholar] [CrossRef] [PubMed]
  15. Andrews, W.S. Magic squares (conclusion). Monist 1905, 15, 555–586. [Google Scholar] [CrossRef]
  16. Skelt, A.L.; Perkins, S.; Roach, P.A. Strictly Concentric Magic Square Puzzles. Math. Today 2022, 58, 84–86. [Google Scholar]
  17. Stones, R.J. K-Ples 2-Erasure Codes and Blackburn Partial Latin Squares. IEEE Trans. Inf. Theory 2020, 66, 3704–3713. [Google Scholar] [CrossRef]
  18. Zolfaghari, B.; Bibak, K. Combinatorial Cryptography and Latin Squares. In Perfect Secrecy in IoT; Springer: Cham, Switzerland, 2022; pp. 37–55. [Google Scholar]
  19. Singh, M. Latin Squares: Mathematical Significance and Diverse Applications. Res. Rev. J. Stat. Math. Sci. 2023, 9, 24–26. [Google Scholar]
  20. Rani, N.; Mishra, V. Application of Magic Squares in Cryptography. In Proceedings in Adaptation, Learning and Optimization, Proceedings of the International Conference on Intelligent Vision and Computing (ICIVC 2021), Online, 3–4 October 2021; Sharma, H., Vyas, V.K., Pandey, R.K., Prasad, M., Eds.; Springer: Cham, Switzerland, 2022; Volume 15. [Google Scholar] [CrossRef]
Figure 1. Illustration of paired cells for an SCMS of order 5; the cell numbers relate to the equation numbers given in Definition 2, followed by a Greek letter denoting pairings.
Figure 1. Illustration of paired cells for an SCMS of order 5; the cell numbers relate to the equation numbers given in Definition 2, followed by a Greek letter denoting pairings.
Axioms 14 00607 g001
Figure 2. A partial PSCMS of order 3 which is multiply completable and its two equivalent completions. (a) Two non-empty cells in a grid of order 3; (b) first completion of (a); (c) second completion of (a).
Figure 2. A partial PSCMS of order 3 which is multiply completable and its two equivalent completions. (a) Two non-empty cells in a grid of order 3; (b) first completion of (a); (c) second completion of (a).
Axioms 14 00607 g002
Figure 3. Two weak partial PSCMS, H 5 w , with non-empty border cells highlighted, and two completions. (a) A weak partial PSCMS, H 5 w , which is uniquely completable; (b) unique completion of the partial PSCMS given in (a) and one completion of the partial PSCMS given in (c); (c) a weak partial PSCMS, H 5 w , which is multiply completable; (d) second completion of the partial PSCMS given in (c), equivalent to (b).
Figure 3. Two weak partial PSCMS, H 5 w , with non-empty border cells highlighted, and two completions. (a) A weak partial PSCMS, H 5 w , which is uniquely completable; (b) unique completion of the partial PSCMS given in (a) and one completion of the partial PSCMS given in (c); (c) a weak partial PSCMS, H 5 w , which is multiply completable; (d) second completion of the partial PSCMS given in (c), equivalent to (b).
Axioms 14 00607 g003
Figure 4. Two minimal strong partial PSCMSs, H 5 s , m i n , and their unique completion, A 5 . (a) First minimal strong partial PSCMS H 5 s , m i n ; (b) second minimal strong partial PSCMS H 5 s , m i n ; (c) unique completion of the minimal strong partial PSCMS in (a,b).
Figure 4. Two minimal strong partial PSCMSs, H 5 s , m i n , and their unique completion, A 5 . (a) First minimal strong partial PSCMS H 5 s , m i n ; (b) second minimal strong partial PSCMS H 5 s , m i n ; (c) unique completion of the minimal strong partial PSCMS in (a,b).
Axioms 14 00607 g004
Figure 5. A partial PSCMS, H 3 , specified by a minimal critical set, V 3 m i n and its unique completion, A 3 . (a) Three non-empty cells in a grid of order 3; (b) unique completion of (a).
Figure 5. A partial PSCMS, H 3 , specified by a minimal critical set, V 3 m i n and its unique completion, A 3 . (a) Three non-empty cells in a grid of order 3; (b) unique completion of (a).
Axioms 14 00607 g005
Figure 6. A partial SCMS (which is also a minimum PSCMS), H 5 , specified by a minimal critical set, V 5 m i n , of an SCMS and its unique completion, A 5 . (a) A grid specified by a minimal critical set of an SCMS of order 5; (b) unique completion of the partial SCMS in (a).
Figure 6. A partial SCMS (which is also a minimum PSCMS), H 5 , specified by a minimal critical set, V 5 m i n , of an SCMS and its unique completion, A 5 . (a) A grid specified by a minimal critical set of an SCMS of order 5; (b) unique completion of the partial SCMS in (a).
Axioms 14 00607 g006
Figure 7. Unavoidable sets of SCMSs. (a) A proper unavoidable set; (b) an improper unavoidable set.
Figure 7. Unavoidable sets of SCMSs. (a) A proper unavoidable set; (b) an improper unavoidable set.
Axioms 14 00607 g007
Figure 8. Normal SCMS of order 7 containing two unavoidable sets.
Figure 8. Normal SCMS of order 7 containing two unavoidable sets.
Axioms 14 00607 g008
Figure 9. The two non-equivalent centre subsquares of order 3 for a minimum PSCMS of order 5. (a) Centre subsquare 1; (b) centre subsquare 2.
Figure 9. The two non-equivalent centre subsquares of order 3 for a minimum PSCMS of order 5. (a) Centre subsquare 1; (b) centre subsquare 2.
Axioms 14 00607 g009
Figure 10. Form 1 unavoidable set of size 4 in a minimum PSCMS of order 5 with its two completions. (a) Form 1 unavoidable set of a minimum PSCMS of order 5; (b) first completion of (a), with highlighted paired cells given the same colour; (c) second completion of (a).
Figure 10. Form 1 unavoidable set of size 4 in a minimum PSCMS of order 5 with its two completions. (a) Form 1 unavoidable set of a minimum PSCMS of order 5; (b) first completion of (a), with highlighted paired cells given the same colour; (c) second completion of (a).
Axioms 14 00607 g010
Figure 11. Minimal Form 2 unavoidable set of size 6 in a minimum PSCMS of order 5 with its two completions. (a) Minimal Form 2 unavoidable set of a minimum PSCMS of order 5; (b) first completion of (a), with highlighted paired cells given the same colour.; (c) second completion of (a).
Figure 11. Minimal Form 2 unavoidable set of size 6 in a minimum PSCMS of order 5 with its two completions. (a) Minimal Form 2 unavoidable set of a minimum PSCMS of order 5; (b) first completion of (a), with highlighted paired cells given the same colour.; (c) second completion of (a).
Axioms 14 00607 g011
Figure 12. Minimal Form 3 unavoidable set of size 12 in a minimum PSCMS of order 5 with its two non-equivalent completions. (a) Minimal Form 3 unavoidable set of a minimum PSCMS of order 5; (b) first completion of (a), with highlighted paired cells given the same colour.; (c) second completion of (a).
Figure 12. Minimal Form 3 unavoidable set of size 12 in a minimum PSCMS of order 5 with its two non-equivalent completions. (a) Minimal Form 3 unavoidable set of a minimum PSCMS of order 5; (b) first completion of (a), with highlighted paired cells given the same colour.; (c) second completion of (a).
Axioms 14 00607 g012
Figure 13. Demonstration of placing two different triples in a Form 3 unavoidable set. (a) Multiply completable partial PSCMS with a Form 3 improper unavoidable set; (b) placing the triple (1, 3, 41), highlighted in yellow, into the grid in (a); (c) first completion of the grid in (b); (d) second completion of the grid in (b) equivalent to the grid in (c); (e) placing the triple (2, 2, 431), highlighted in yellow, into the grid in (a); (f) unique completion of (e) (which is also equal to first completion of (b)).
Figure 13. Demonstration of placing two different triples in a Form 3 unavoidable set. (a) Multiply completable partial PSCMS with a Form 3 improper unavoidable set; (b) placing the triple (1, 3, 41), highlighted in yellow, into the grid in (a); (c) first completion of the grid in (b); (d) second completion of the grid in (b) equivalent to the grid in (c); (e) placing the triple (2, 2, 431), highlighted in yellow, into the grid in (a); (f) unique completion of (e) (which is also equal to first completion of (b)).
Axioms 14 00607 g013
Figure 14. Minimal Form 4 unavoidable set of size 8 in a minimum PSCMS of order 5 with its two non-equivalent completions. (a) Minimal Form 4 unavoidable set of a minimum PSCMS of order 5; (b) first completion of the grid in (a), with highlighted paired cells given the same colour; (c) second completion of the grid in (a).
Figure 14. Minimal Form 4 unavoidable set of size 8 in a minimum PSCMS of order 5 with its two non-equivalent completions. (a) Minimal Form 4 unavoidable set of a minimum PSCMS of order 5; (b) first completion of the grid in (a), with highlighted paired cells given the same colour; (c) second completion of the grid in (a).
Axioms 14 00607 g014
Figure 15. Demonstration of placing a triple, highlighted in yellow, in a Form 4 unavoidable set. (a) Multiply completable partial PSCMS with a Form 4 improper unavoidable set; (b) placing the triple (1, 2, 11) into the grid in (a); (c) first completion of the grid in (b); (d) second completion of the grid in (b) equivalent to the grid in (c).
Figure 15. Demonstration of placing a triple, highlighted in yellow, in a Form 4 unavoidable set. (a) Multiply completable partial PSCMS with a Form 4 improper unavoidable set; (b) placing the triple (1, 2, 11) into the grid in (a); (c) first completion of the grid in (b); (d) second completion of the grid in (b) equivalent to the grid in (c).
Axioms 14 00607 g015
Figure 16. Minimal Form 5 unavoidable set of size 14 in a minimum PSCMS of order 5 with its two non-equivalent completions. (a) Minimal Form 5 unavoidable set of a minimum PSCMS of order 5; (b) first completion of the grid in (a), with highlighted paired cells given the same colour; (c) second completion of the grid in (a).
Figure 16. Minimal Form 5 unavoidable set of size 14 in a minimum PSCMS of order 5 with its two non-equivalent completions. (a) Minimal Form 5 unavoidable set of a minimum PSCMS of order 5; (b) first completion of the grid in (a), with highlighted paired cells given the same colour; (c) second completion of the grid in (a).
Axioms 14 00607 g016
Figure 17. Demonstration of placing a triple, highlighted in yellow, in a Form 5 unavoidable set. (a) Multiply completable partial PSCMS with a Form 5 improper unavoidable set; (b) placing the triple (1, 2, 71) into the grid in (a); (c) first completion of the grid in (b); (d) second completion of the grid in (b) equivalent to the grid in (c); (e) third completion of the grid in (b) equivalent to the grids in (c,d); (f) fourth completion of the grid in (b) equivalent to the grids in (ce).
Figure 17. Demonstration of placing a triple, highlighted in yellow, in a Form 5 unavoidable set. (a) Multiply completable partial PSCMS with a Form 5 improper unavoidable set; (b) placing the triple (1, 2, 71) into the grid in (a); (c) first completion of the grid in (b); (d) second completion of the grid in (b) equivalent to the grid in (c); (e) third completion of the grid in (b) equivalent to the grids in (c,d); (f) fourth completion of the grid in (b) equivalent to the grids in (ce).
Axioms 14 00607 g017
Figure 18. Patterns of twelve empty cell, shown in white, in grids of order 5 where six of the empty cells are in the order 3 centre subsquare. (a) Case 1; (b) case 2; (c) case 3; (d) case 4; (e) case 5.
Figure 18. Patterns of twelve empty cell, shown in white, in grids of order 5 where six of the empty cells are in the order 3 centre subsquare. (a) Case 1; (b) case 2; (c) case 3; (d) case 4; (e) case 5.
Axioms 14 00607 g018
Table 1. Permutation operations on the border pairs in cells of an SCMS of order n, n odd, where the permutation order given is the smallest number of such permutations required to return to the initial state [6].
Table 1. Permutation operations on the border pairs in cells of an SCMS of order n, n odd, where the permutation order given is the smallest number of such permutations required to return to the initial state [6].
PermutationOrder
Permute the border pairs in columns i, i 1 and i s ,
noting that the values remain in their original row ( s 2 ) !
Permute the border pairs in rows i, i 1 and i s ,
noting that the values remain in their original column ( s 2 ) !
Permute the value in ( 1 , j ) with the value in ( s , j )
for all j = 1 , , s 2
Permute the value in ( i , 1 ) with the value in ( i , s )
for all i = 1 , , s 2
Permute the value in ( 1 , j ) with the value in ( i , s )
and the value in ( s , j ) with the value in ( i , 1 )
for all i = 1 , , s where i = s j + 1 2
Table 2. Primes used in B 5 of the minimum PSCMS of order 5 with magic centre subsquares 1 and 2 (taken from [6]).
Table 2. Primes used in B 5 of the minimum PSCMS of order 5 with magic centre subsquares 1 and 2 (taken from [6]).
TypeList of Primes in the Border of Order 5
1A11, 53, 71, 83, 101, 113, 191, 239, 263, 311, 389, 401, 419, 431, 449, 491
1B11, 53, 83, 101, 113, 149, 191, 239, 263, 311, 353, 389, 401, 419, 449, 491
1C11, 71, 83, 101, 113, 149, 191, 239, 263, 311, 353, 389, 401, 419, 431, 491
1D53, 71, 83, 101, 113, 149, 191, 239, 263, 311, 353, 389, 401, 419, 431, 449
1E11, 53, 71, 83, 101, 113, 149, 239, 263, 353, 389, 401, 419, 431, 449, 491
1F11, 53, 71, 83, 101, 149, 191, 239, 263, 311, 353, 401, 419, 431, 449, 491
2A11, 23, 41, 53, 101, 113, 149, 191, 311, 353, 389, 401, 449, 461, 479, 491
2B11, 23, 41, 53, 101, 113, 149, 233, 269, 353, 389, 401, 449, 461, 479, 491
2C11, 23, 41, 53, 101, 113, 191, 233, 269, 311, 389, 401, 449, 461, 479, 491
2D11, 23, 41, 101, 113, 149, 191, 233, 269, 311, 353, 389, 401, 461, 479, 491
2E11, 23, 41, 53, 101, 149, 191, 233, 269, 311, 353, 401, 449, 461, 479, 491
2F11, 23, 41, 53, 113, 149, 191, 233, 269, 311, 353, 389, 449, 461, 479, 491
2G11, 23, 53, 101, 113, 149, 191, 233, 269, 311, 353, 389, 401, 449, 479, 491
2H11, 41, 53, 101, 113, 149, 191, 233, 269, 311, 353, 389, 401, 449, 461, 491
2I23, 41, 53, 101, 113, 149, 191, 233, 269, 311, 353, 389, 401, 449, 461, 479
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Skelt, A.L.; Perkins, S.; Roach, P.A. Critical Sets and Unavoidable Sets of Strictly Concentric Magic Squares of Odd Order and Their Application to Prime Strictly Concentric Magic Squares of Order 5. Axioms 2025, 14, 607. https://doi.org/10.3390/axioms14080607

AMA Style

Skelt AL, Perkins S, Roach PA. Critical Sets and Unavoidable Sets of Strictly Concentric Magic Squares of Odd Order and Their Application to Prime Strictly Concentric Magic Squares of Order 5. Axioms. 2025; 14(8):607. https://doi.org/10.3390/axioms14080607

Chicago/Turabian Style

Skelt, Anna Louise, Stephanie Perkins, and Paul Alun Roach. 2025. "Critical Sets and Unavoidable Sets of Strictly Concentric Magic Squares of Odd Order and Their Application to Prime Strictly Concentric Magic Squares of Order 5" Axioms 14, no. 8: 607. https://doi.org/10.3390/axioms14080607

APA Style

Skelt, A. L., Perkins, S., & Roach, P. A. (2025). Critical Sets and Unavoidable Sets of Strictly Concentric Magic Squares of Odd Order and Their Application to Prime Strictly Concentric Magic Squares of Order 5. Axioms, 14(8), 607. https://doi.org/10.3390/axioms14080607

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop