Compute [math], [math], [math], and then state a formula for [math], when [math]

[math]

[math]

[math]

[math]

[Hint: The expression [math] has value [math] if [math] is even and [math] if [math] is odd. This expression can be used in your answer for the last part.]