edited by
382 views
1 votes
1 votes
T(n)=T(n-3)+cn2

T(n-3)=T(n-6)+c(n-3)2

T(n-6)=T(n-9)+c(n-6)2

Continuing like this I am getting T(n)=T(n-3k)+cn2+c(n-3k)2+c(n-(3k+3))2+c(n-(3k+6))2+c(n-(3k+9))2+......

Now let k=(n-1)/3 ,I am only able to get terms like cn2+c+4c+25c +64c, with which I am unable to reach any conclusion , so how to proceed through this .
edited by

1 Answer

Best answer
2 votes
2 votes

Please go through my solution:

I suggest ,download the image first then view it for better clarity.

selected by

Related questions

0 votes
0 votes
1 answer
2
2 votes
2 votes
1 answer
3
0 votes
0 votes
0 answers
4