MOLS - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

MOLS

mutually orthogonal Latin squares

 Calling Sequence MOLS(p, m, n)

Parameters

 p - prime number m - positive integer n - positive integer less than p^m

Description

 • This function returns a list of n mutually orthogonal Latin squares of size p^m.
 • Two Latin squares, A and B, are mutually orthogonal if the set of ordered pairs $\left\{{A}_{i,j},{B}_{i,j},0\le i,j\le {p}^{m}\right\}$ has no repeated elements.

Examples

 > $\mathrm{MOLS}\left(3,1,2\right)$
 $\left[\left[\begin{array}{rrr}{0}& {1}& {2}\\ {1}& {2}& {0}\\ {2}& {0}& {1}\end{array}\right]{,}\left[\begin{array}{rrr}{0}& {1}& {2}\\ {2}& {0}& {1}\\ {1}& {2}& {0}\end{array}\right]\right]$ (1)

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam