Операции со множествами

A=Range[10]
B=Range[8,16]
F=Range[10,20,2]

Union[A,B]

Union[A,B,F]

Intersection[A,B]

Intersection[A,B,F]

Complement[A,B]

Complement[B,A]

Intersection[A,Union[B,F]]

Union[A,Intersection[B,F]]

Intersection[A,Complement[B,F]]

Intersection[Complement[A,B],F]

Tuples[{A,F}]

Операции с целочисленными вычетами

Mod[{1,2,3,4,5,6},3]

Mod[5*40,3]

Reduce[2x==1,Modulus->3]

Reduce[6x==22,Modulus->14]

Reduce[2x^2+2x-4==0,Modulus->22]