Mathematical Patterns and Rules