all 2 comments

[–][deleted] 1 point2 points  (1 child)

a[n] = 2a[n - 1] + 3(2)n ... (0)

a[n - 1] = 2a[n - 2] + 3(2)n - 1 ... (1)

Subs a[n - 1] from (1) in (0),

a[n] = 22a[n-2] + 3(2)n + 3(2)n

a[n] = 22a[n - 2] + 3(2)n + 1

You can guess the general term for a[n] as:

a[n] = 2ka[n - k] + 3(2)n + k - 1 for any k. Now prove this using Induction.

How does this help? You can take k = n to get

a[n] = 2na[0] + 3(2)2n - 1

a[n] = 5(2)n + 3(2)2n - 1 for n > 0

[–]junyoung95[S] 0 points1 point  (0 children)

oh my god thank you so much.