Need some help figuring out my code

And of course in mathematics generally.

a7