Exercise 8. Find the generating function for the sequence with closed formula \(a_n = 2(5^n) + 7(-3)^n\text{.}\) Solution.