ptex
- 42
- 0
Code:
This is the question I must solve;
Solve the given recurrence relation for the given inital conditions.
(This means give a formula in terms of n, not in terms of previous entries)
a[sub]n[/sub] = 7a[sub]n-1[/sub] - 12a[sub]n-2[/sub]
a[sub]0[/sub] = 3 a[sub]1[/sub] = 10
Now I am not sure what that means but I think this will solve the question
let me know if I am not even close;
Input = n
Output = X(n)
procdure find(n)
if n = 3 or n = 10 then
return (n)
return(find(n-1)+find(n-2))
end find(n)