4.5: Generate and analyze a number or shape pattern that follows a given rule.