Number Patterns

Math question on sequence

Code: