2.Solve the difference equation an = 3an−1 + 4an−2 with a0 = 0, a1 = 1. Given an integer n, write a C program to find an and analyze the program in the worst case. (If you have many programs, choose the program with less running time.)
2.Solve the difference equation an = 3an−1 + 4an−2 with a0 = 0, a1 = 1. Given an integer n, write a C program to find an and analyze the program in the worst case. (If you have many programs, choose the program with less running time.)