DistributiveElements( nr )
An element d of a right near-ring (N,+,cdot) is called a distributive element if it is also left distributive over all elements, i.e. forall n_1, n_2 in N: d cdot (n_1 + n_2 ) = d cdot n_1 + d cdot n_2.
The function DistributiveElements
returns a list containing the
distributive elements of the near-ring nr.
gap> DistributiveElements( LibraryNearring( "S3", 25 ) ); [ (), (1,2,3), (1,3,2) ]
GAP 3.4.4