ptex
Apr28-04, 10:32 PM
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)
an = 7an-1 - 12an-2
a0 = 3 a1 = 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)
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)
an = 7an-1 - 12an-2
a0 = 3 a1 = 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)