Arithmetic and Albers

Inspired by Josef Albers's series "Homage to the Square", and its sometimes seemingly random choices of color that actually stem from a calculated process.

Each layer of the square is determined by a basic math operation, whose variables are generated randomly.