0
$\begingroup$

What will be the generating function for recurrence relation of following type

$f(n)$ = $f(n/2)$ + $n^2$

please help

$\endgroup$
1
  • $\begingroup$ Use this. $\endgroup$
    – J.G.
    Sep 6 '20 at 13:47
1
$\begingroup$

Hint

Suppose than $$f(n)=a+b n+c n^2$$ So $$f(n)-f\left(\frac{n}{2}\right)-n^2=0 \implies \frac{b }{2}n+\frac{3 c }{4}n^2-n^2=0$$ Make all coefficients equal to $0$.

If you are not convinced, try $$f(n)=a+b n+c n^2+dn^3$$ $$f(n)-f\left(\frac{n}{2}\right)-n^2=0 \implies \frac{b }{2}n+\frac{3 c }{4}n^2-n^2+\frac {7 d} 8n^3=0$$ Make all coefficients equal to $0$.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.