MOSS (Orthogonal Sudoku)

Programs which generate, solve, and analyze Sudoku puzzles

Re: MOSS (Orthogonal Sudoku)

Postby Serg » Tue Nov 10, 2026 7:32 am

Hi, Blue!
blue wrote:On the automorhpsm count: since applying two transformations in succession and normalizing the result, produces the same result as transforming twice and normalizing after each transformation, it follows that VPT parts of the (automorphic) transformations, form a subgroup of the full group of VPT's. From that, it follows that that the number of automorphisms is always a factor of 3359232 ... just like for single grids.

If we say about (G1,...,Gk) automorphisms, maximal number of automorphisms should be "k!" multiplied by a factor of 3359232 (not more than k! x 648), isn't it?

Serg
Serg
2018 Supporter
 
Posts: 932
Joined: 01 June 2010
Location: Russia

Re: MOSS (Orthogonal Sudoku)

Postby blue » Sat Nov 14, 2026 10:49 pm

Serg wrote:If we say about (G1,...,Gk) automorphisms, maximal number of automorphisms should be "k!" multiplied by a factor of 3359232 (not more than k! x 648), isn't it?

It's "not more than k*648".

As many as 'k' of the grids can have a transformation to match G1, and there can as many as 648 transformations each if G1 is the MC grid (or an isomorph).
After applying one of those transformations and relabeling the rest of the grids to put R1 in standard form, either the grids can be permuted to match (G1,...,Gk) or not.
If so, we have an automorphism.
No other automorphism is possible.

I checked all of the k-MOSS's, and it turns out that the automorphism count is always a factor of 6*648.
I expected a 4*648 case for k=4, but there aren't any.

Code: Select all

  +------+------------+----------+-----+-----+-----+-----+
  |   na |        k=1 |      k=2 | k=3 | k=4 | k=5 | k=6 |
  +------+------------+----------+-----+-----+-----+-----+
  | 3888 |            |          |     |     |     |   1 |
  | 1944 |            |          |   2 |     |     |   1 |
  | 1296 |            |        1 |     |   1 |     |   1 |
  |  648 |          1 |        3 |   1 |  10 |   3 |   1 |
  |  432 |            |          |     |     |     |   1 |
  |  324 |            |        2 |  10 |   3 |   5 |     |
  |  216 |            |          |   2 |     |     |   2 |
  |  162 |          1 |        2 |   5 |   4 |     |     |
  |  144 |            |        2 |     |   2 |     |   1 |
  |  108 |          3 |       14 |  21 |  10 |   4 |   2 |
  |   72 |          2 |       17 |   4 |  15 |   3 |     |
  |   54 |         11 |       65 | 124 |  54 |   4 |     |
  |   36 |         15 |      106 |  58 |  45 |   9 |     |
  |   27 |          2 |       15 |   7 |     |     |     |
  |   24 |            |       24 |     |     |     |     |
  |   18 |         85 |      690 | 380 |  80 |     |     |
  |   16 |            |       13 |     |     |     |     |
  |   12 |         92 |      726 |  17 |   7 |     |     |
  |    9 |         42 |     1003 |  68 |   3 |     |     |
  |    8 |         29 |      267 |     |   2 |     |     |
  |    6 |       1257 |     9799 | 225 |  20 |     |     |
  |    4 |       2826 |    17692 |   4 |   1 |     |     |
  |    3 |       7336 |   147046 |  20 |     |     |     |
  |    2 |     548449 |  1383320 |  22 |   1 |     |     |
  |    1 | 5472170387 | 51317260 |   1 |     |     |     |
  +------+------------+----------+-----+-----+-----+-----+
  |  sum | 5472730538 | 52878067 | 971 | 258 |  28 |  10 |
  +------+------------+----------+-----+-----+-----+-----+


Edit: spelling
Last edited by blue on Sun Nov 15, 2026 4:45 pm, edited 1 time in total.
blue
 
Posts: 1123
Joined: 11 March 2013

Re: MOSS (Orthogonal Sudoku)

Postby blue » Sat Nov 14, 2026 11:37 pm

blue wrote:
Serg wrote:Maybe it would be simpler to describe - in what way did you count 2-MOSS?

I'll write it up "offline" and post it later.
The forum wasn't responding well, earlier.


This covers all k's ...

For a (G1,...,Gk) to be "minlex-canonical", at a minimum, G1 needs to be a minlex grid, and G2,...,Gk need to be orthogonal to G1.
This can be shown too: If (G1,...,Gk,Gk+1) is "minlex-canonical", then so is (G1,...,Gk).

I have code to produce all of the (R1 = 123456789) orthogonal mates for a given grid, using the "transversals" method that Mathimagics discussed.
For the 287,109 minlex grids with orthogonal mates, it generates 141,167,298 mates in total.
It's an average of only ~492 per input grid, but >1500 of them have 50000 or more mates.

My basic strategy was:
  • Generate enough (G1,G2) pairs to cover all of the canonical cases, and test each case for being canonical.
  • For the ones that are canonical, append G3's from the list of grids orthogonal to G1, restricting them to cases with G2 < G3 and G3 orthoginal to G2.
    Do it in a way that enough (G1,G2,G3)'s are produced to cover all of the canonical cases, and test each case for being canonical.
  • Extend that idea to cover k=4,5,6 cases too.
  • Do whatever I can to screen out cases that definitely can't be canonical.
For the last part ... screening out cases that definitely can't be canonical:
  1. The grids orthoginal to G1, can be split into orbits under G1 automorhphisms followed by (R1) relabeling.
    Note: all members of given orbit, have the same "minlex" form.
    Define the "first" member of an orbit to be the one that's "minlex-smallest".
    Then ...
  2. If the first member of an orbit is < G1, or it has a minlex form less then that of G1, then none of the grids in the orbit can work as a G2,G3,...
  3. G2 must be the first member of its orbit -- or else (G1,G2) can be made "smaller" than its starting value.
  4. For G3 and later, the first member of its orbit can't be less than G2 -- or else (for G3, for example) (G1,G3,...) can be made smaller than (G1,G2,...)
With Mathimagics' 287109 grids as a starting point, the job took about 1/2 hour (@4.3 GHz).
Producing the 287109 grids took ~24 hours, though :(

Cheers.

Edit: spelling
Last edited by blue on Sun Nov 15, 2026 4:54 pm, edited 1 time in total.
blue
 
Posts: 1123
Joined: 11 March 2013

Re: MOSS (Orthogonal Sudoku)

Postby JPF » Sun Nov 15, 2026 8:33 am

Hi blue,

About the missing 4*648 case: it can be explained without the enumeration.

The automorphisms of a k-MOSS form a group H of VPTs, of order at most k*648. Equality needs all k grids to be MC isomorphs, and then H contains Aut(MC) and the k grids are the orbit of MC under H. Groups between Aut(MC) and the full group correspond to blocks of the action on the 5184 normalized MC isomorphs, so the k grids must form a block of size k.

Computing all blocks containing MC, the sizes are 2, 3, 4, 6, 9, 18, 36, 81, 162, 324, 1296, 2592, 5184. For the small sizes:

size 2: 1 block, orthogonal
size 3: 2 blocks, both orthogonal (and not equivalent to each other)
size 4: 1 block, not orthogonal (only 2 of its 6 pairs are orthogonal)
size 6: 2 blocks, 1 orthogonal

This matches your table exactly: one case with 1296 for k=2, two with 1944 for k=3, one with 3888 for k=6. The only block of size 4 consists of MC, MC with bands 2 and 3 swapped, MC with rows 2 and 3 swapped in each band, and both; it does have 4*648 automorphisms, but it is not a 4-MOSS. (k=5 is excluded anyway, since 5 does not divide 5184.)

JPF
I continue to post on https://forum.sudoked.com which is the new home of this forum from November 2026
JPF
2017 Supporter
 
Posts: 6158
Joined: 06 December 2005
Location: Paris, France

Re: MOSS (Orthogonal Sudoku)

Postby Serg » Sun Nov 15, 2026 10:32 am

Hi, Blue!
blue wrote:
Serg wrote:If we say about (G1,...,Gk) automorphisms, maximal number of automorphisms should be "k!" multiplied by a factor of 3359232 (not more than k! x 648), isn't it?

It's "not more than k*648".

As many as 'k' of the grids can have a transformation to match G1, and there can as many as 648 transformations each if G1 is the MC grid (or an isomorph).
After applying one of those transformations and relabeling the rest of the grids to put R1 in standard form, either the grids can be permuted to match (G1,...,Gk) or not.
If so, we have an automorphism.
No other automorphism is possible.

You are right. All Gi grids in the set (G1,...,Gk) have the same r1 row (123456789), but each other grid cells (outside of r1) must contain unique digit. So, Gi grids are all different.
blue wrote:I checked alll of the k-MOSS's, and it turns out that the automorphism count is always a factor of 6*648.
I expected a 4*648 case for k=4, but there aren't any.

Code: Select all

  +------+------------+----------+-----+-----+-----+-----+
  |   na |        k=1 |      k=2 | k=3 | k=4 | k=5 | k=6 |
  +------+------------+----------+-----+-----+-----+-----+
  | 3888 |            |          |     |     |     |   1 |
  | 1944 |            |          |   2 |     |     |   1 |
  | 1296 |            |        1 |     |   1 |     |   1 |
  |  648 |          1 |        3 |   1 |  10 |   3 |   1 |
  |  432 |            |          |     |     |     |   1 |
  |  324 |            |        2 |  10 |   3 |   5 |     |
  |  216 |            |          |   2 |     |     |   2 |
  |  162 |          1 |        2 |   5 |   4 |     |     |
  |  144 |            |        2 |     |   2 |     |   1 |
  |  108 |          3 |       14 |  21 |  10 |   4 |   2 |
  |   72 |          2 |       17 |   4 |  15 |   3 |     |
  |   54 |         11 |       65 | 124 |  54 |   4 |     |
  |   36 |         15 |      106 |  58 |  45 |   9 |     |
  |   27 |          2 |       15 |   7 |     |     |     |
  |   24 |            |       24 |     |     |     |     |
  |   18 |         85 |      690 | 380 |  80 |     |     |
  |   16 |            |       13 |     |     |     |     |
  |   12 |         92 |      726 |  17 |   7 |     |     |
  |    9 |         42 |     1003 |  68 |   3 |     |     |
  |    8 |         29 |      267 |     |   2 |     |     |
  |    6 |       1257 |     9799 | 225 |  20 |     |     |
  |    4 |       2826 |    17692 |   4 |   1 |     |     |
  |    3 |       7336 |   147046 |  20 |     |     |     |
  |    2 |     548449 |  1383320 |  22 |   1 |     |     |
  |    1 | 5472170387 | 51317260 |   1 |     |     |     |
  +------+------------+----------+-----+-----+-----+-----+
  |  sum | 5472730538 | 52878067 | 971 | 258 |  28 |  10 |
  +------+------------+----------+-----+-----+-----+-----+


Interesting!

Serg
Serg
2018 Supporter
 
Posts: 932
Joined: 01 June 2010
Location: Russia

Re: MOSS (Orthogonal Sudoku)

Postby blue » Sun Nov 15, 2026 5:36 pm

JPF wrote:Hi blue,

About the missing 4*648 case: it can be explained without the enumeration.

The automorphisms of a k-MOSS form a group H of VPTs, of order at most k*648. Equality needs all k grids to be MC isomorphs, and then H contains Aut(MC) and the k grids are the orbit of MC under H. Groups between Aut(MC) and the full group correspond to blocks of the action on the 5184 normalized MC isomorphs, so the k grids must form a block of size k.

(...)

Interesting !
Thank you.
blue
 
Posts: 1123
Joined: 11 March 2013

Re: MOSS (Orthogonal Sudoku)

Postby JPF » Wed Nov 25, 2026 11:18 am

Hi blue,

A small remark on your ten 6-MOSS.

Take any of them and look for Latin squares (not necessarily Sudoku grids)
orthogonal to all six grids. In each of the ten cases there are exactly two,
and they are orthogonal to each other. And they are as far as possible from
Sudoku: every box contains only 3 different digits, each 3 times.
For instance, one of the two squares completing Red Ed's example:

Code: Select all
1 2 3 | 4 5 6 | 7 8 9
3 1 2 | 6 4 5 | 9 7 8
2 3 1 | 5 6 4 | 8 9 7
------+-------+------
8 9 7 | 2 3 1 | 5 6 4
7 8 9 | 1 2 3 | 4 5 6
9 7 8 | 3 1 2 | 6 4 5
------+-------+------
6 4 5 | 9 7 8 | 3 1 2
5 6 4 | 8 9 7 | 2 3 1
4 5 6 | 7 8 9 | 1 2 3


This fits your proof of the bound 6: the six grids use the six cells of
row 2 where a '1' may go, so a seventh square must put its '1' of row 2
in box 1.
Is it also true that every 5-MOSS has such "anti-Sudoku" completions?

JPF

Computations were done with the help of Claude (AI).
I continue to post on https://forum.sudoked.com which is the new home of this forum from November 2026
JPF
2017 Supporter
 
Posts: 6158
Joined: 06 December 2005
Location: Paris, France

Re: MOSS (Orthogonal Sudoku)

Postby blue » Wed Nov 25, 2026 5:53 pm

Hi JPF,

A small remark on your ten 6-MOSS.

Take any of them and look for Latin squares (not necessarily Sudoku grids)
orthogonal to all six grids. In each of the ten cases there are exactly two,
and they are orthogonal to each other.

Interesting !
I wonder of all 10 of them are isomorphic as 6-MOLS's ?
I'm not set up to check that right now.
Edit, short answer: "no", but some pairs could be isomorphic.

Is it also true that every 5-MOSS has such "anti-Sudoku" completions?

There are 12 5-MOSS's that don't have an extension to a 6-MOSS.
None of them has a latin square that is orthogonal to all 5 grids.

For reference, they are listed below.

Hidden Text: Show
Code: Select all
k=5,na=54
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645456789123897231564312645978789123456231564897645978312 (964549,648)
123456789645978312897231564978312645231564897456789123564897231789123456312645978 (964549,648)
123456789789123456456789123315648972972315648648972315831264597597831264264597831 (992772,54)
123456789978312645564897231789123456645978312231564897456789123312645978897231564 (964549,648)

k=5,na=54
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645456789123897231564312645978789123456231564897645978312 (964549,648)
123456789645978312897231564978312645231564897456789123564897231789123456312645978 (964549,648)
123456789789123456456789123345678912912345678678912345837261594594837261261594837 (992772,54)
123456789978312645564897231789123456645978312231564897456789123312645978897231564 (964549,648)

k=5,na=108
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645456789312897123564231645978789231456312564897645978123 (965173,108)
123456789645978312897231564978312645231564897456789123564897231789123456312645978 (964549,648)
123456789789123456456789123312645978978312645645978312231564897897231564564897231 (964549,648)
123456789897231564645978312564897231312645978789123456978312645456789123231564897 (964549,648)

k=5,na=108
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645456978312789123564231645897897231456312564978645789123 (965173,108)
123456789645978312897231564978312645231564897456789123564897231789123456312645978 (964549,648)
123456789789123456456789123312645978978312645645978312231564897897231564564897231 (964549,648)
123456789897231564645978312564897231312645978789123456978312645456789123231564897 (964549,648)

k=5,na=108
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645645978312789123456231564897897231564312645978456789123 (964549,648)
123456789647938512895271364589127436312645978764893251476389125958712643231564897 (965173,108)
123456789789123456456789123978312645645978312312645978564897231231564897897231564 (964549,648)
123456789978312645564897231312645978897231564456789123231564897789123456645978312 (964549,648)

k=5,na=108
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645645978312789123456231564897897231564312645978456789123 (964549,648)
123456789697238514845971362584197236312645978769823451976382145458719623231564897 (965173,108)
123456789789123456456789123978312645645978312312645978564897231231564897897231564 (964549,648)
123456789978312645564897231312645978897231564456789123231564897789123456645978312 (964549,648)

k=5,na=648
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645645978312789123456231564897897231564312645978456789123 (964549,648)
123456789789123456456789123978312645645978312312645978564897231231564897897231564 (964549,648)
123456789897231564645978312564897231312645978789123456978312645456789123231564897 (964549,648)
123456789978312645564897231312645978897231564456789123231564897789123456645978312 (964549,648)

k=5,na=54
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645649178352781523496235964817857239164392641578416785923 (992772,54)
123456789789123456456789123978312645645978312312645978564897231231564897897231564 (964549,648)
123456789897231564645978312564897231312645978789123456978312645456789123231564897 (964549,648)
123456789978312645564897231312645978897231564456789123231564897789123456645978312 (964549,648)

k=5,na=54
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645689173452731524896245968317457289163892631574316745928 (992772,54)
123456789789123456456789123978312645645978312312645978564897231231564897897231564 (964549,648)
123456789897231564645978312564897231312645978789123456978312645456789123231564897 (964549,648)
123456789978312645564897231312645978897231564456789123231564897789123456645978312 (964549,648)

k=5,na=36
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645789123456231564897645978312456789123897231564312645978 (964549,648)
123456789645978312897231564456789123978312645231564897789123456312645978564897231 (964549,648)
123456789789123456456789123648972315315648972972315648597831264264597831831264597 (992772,54)
123456789897231645564978312312645978789123564456897231231564897978312456645789123 (992772,54)

k=5,na=36
123456789456789123789123456231564897564897231897231564312645978645978312978312645 (964549,648)
123456789564897231978312645789123456231564897645978312456789123897231564312645978 (964549,648)
123456789645978312897231564456789123978312645231564897789123456312645978564897231 (964549,648)
123456789789123456456789123648972315315648972972315648597831264264597831831264597 (992772,54)
123456789897312645564978231312645978789231564456897123231564897978123456645789312 (992772,54)

k=5,na=72
123456789457189326869372514214965873635847192978213465381624957546798231792531648 (5449015462,36)
123456789574918263986723451738241695219365874465879312642597138897132546351684927 (5449015462,36)
123456789745891632698237145956783421487129356312564978579318264231645897864972513 (5472730537,72)
123456789896732541475819362541698237362574918789321654918263475654987123237145896 (5472677694,108)
123456789968273415547198236372514968891632547654987123236745891789321654415869372 (5472677694,108)

(Maybe you can double check my claim).
blue
 
Posts: 1123
Joined: 11 March 2013

Re: MOSS (Orthogonal Sudoku)

Postby JPF » Wed Nov 25, 2026 8:50 pm

I double-checked your claim.
- Your twelve 5-MOSS are indeed 5-MOSS, pairwise non-isomorphic, with the na values you give. None of them has a Latin square orthogonal to all 5 grids; in fact none has even a single common transversal (9 cells, one in each row and column, with 9 different digits in each grid). Each of your ten 6-MOSS has 18 such transversals: they make up the two "anti-Sudoku" squares.
- The 5-subsets of your ten 6-MOSS give exactly 16 non-isomorphic 5-MOSS, none of them among your twelve. 16 + 12 = 28, your total for k=5, and the na distribution matches your table row by row (648: 2+1, 324: 5+0, 108: 0+4, 72: 2+1, 54: 0+4, 36: 7+2).
So, assuming your count of 28, the twelve are exactly the 5-MOSS that don't extend.

About isomorphism: with your numbering (k=6 list, page 1), cases 6 (na=432) and 10 (na=144) are the only isomorphic pair as 6-MOLS. If rows, columns and the six squares may all be interchanged, cases 1 and 4 also become isomorphic: 8 classes.

JPF

Computations were done with the help of Claude (AI).
I continue to post on https://forum.sudoked.com which is the new home of this forum from November 2026
JPF
2017 Supporter
 
Posts: 6158
Joined: 06 December 2005
Location: Paris, France

Re: MOSS (Orthogonal Sudoku)

Postby blue » Thu Nov 26, 2026 3:57 am

JPF wrote:I double-checked your claim.
(...)

You covered every angle, I see.
Thank you.

JPF wrote:About isomorphism: with your numbering (k=6 list, page 1), cases 6 (na=432) and 10 (na=144) are the only isomorphic pair as 6-MOLS. If rows, columns and the six squares may all be interchanged, cases 1 and 4 also become isomorphic: 8 classes.

I got curious about what would happen if you added the two "anti-sudoku" grids, to make 8-MOLS's out of them.
Cases (1,4) and (6,10) make isomorphic pairs -- the same 8 classes again.
And if "rows, columns and the eight squares may all be interchanged", cases (1,3,4), (2), (5,9), and (6,7,8,10) group together to make 4 classes.

In the last situation, the 2nd class has the largest automorphism count: 933120, which is less than the (theoretical?) max of 10*9*8*3888, by a factor of 3.
(I'm using "3888", since I read somewhere that the MC grid has the largest count for (9x9) latin squares ... 23328 = 3*2*1*3888).
blue
 
Posts: 1123
Joined: 11 March 2013

Previous

Return to Software