help: solve_rec



On 10/05/2010 6:10 AM, Abu Naser Masud wrote:
> Hi,
>
> I am using maxima for few days. So, please excuse me if I ask
> something very primitive.
>
> I tried to execute the following command to solve the recurrence relation p(x).
> (%i7) grind(solve_rec(p(x)=2+p(x-1)+p(x-2),p(x),p(0)=0));
>
> I got the following answer:
>
> p(x) = (sqrt(5)-1)^x*(2-%k[2])*(-1)^x/2^x+(sqrt(5)+1)^x*%k[2]/2^x-2$
>
> I know the RR is of order 2 so need at least 2 base cases. However, I
> give one base case and wanted to see how it behaves.
>
> My question is what is the meaning of %k[2] in the above result.
>
%k[2] is a free constant