Find a formula for and if

=

You can earn partial credit on this problem.