#Finding Formula for Recursive Relation
75 messages · Page 1 of 1 (latest)
After the last line, I have no clue
ah.. I've done Abit of fiddling about the types of summati like that
U might want to take a look at Stirling's number
well, is my approach and the math for it correct in the first place?
This problem was chosen by my prof and given that he hasn't lectured on Stirling's number, I doubt it's required to solve the recursive relation
It looks correct
it can't be right
you're describing
a(n) = 1a(n-1) +n2^n
ok, I got it
I did it kind of brute forcey and didn't prove it but you can do the induction stuff
define b(n) = 2^n
define c(n) = a(n) / b(n) is quadratic and pretty easy to figure out
its possible to simplify that one even more
ive found that its actually mistaken , i'm not sure , but i'll show u my solution
my solution was an = 2^n x (a0 + n(n+1)/2 )
a(n) = 2^(n-1)(n^2+n+a_1)
Yeah if u set b(n) = a(n)/2^n,the question becomes
b(n) = b(n-1)+ n
I figured this out a while ago. I didn't present the full answer because I wanted the questioner to think about it
It does if u manipulate it abit
i see it but we're trying to get away from recursive
Dude,the equation is literally called a recurrence relation
the question is asking for a closed form solution
Yeah,u can figure that from here...
U can do it by subtracting both sides by b(n-1) and then summing it
Creating a telescoping sum
I already did days ago. You know I'm, not the original questioner right?
I know
how did you get that
lemme show you how i simplified it , i think its not necessary
@dark igloo
@spring forge how did you get ur result?
I saw it was exponential so I divided by 2^n and the closed form was obvious
did you try and sibstitute ? because when i did the substituion into my closed formula it was correct
Yeah but u still need to proof that
$a(n) = 2^k a(n-k) + 2^n \sum_{i=1}^k n - i + 1$
(by induction,u can't just assume the pattern holds)
impract1cal
After u do that,set k = n and u get ur result
well yeah i have to use induction your right , but the explicit formula is true
yes
do you they want the explicit formula for some natural number k ?
or until 0
nah, but u can use that to get a(n)
yes
but if u dont want to do induction and still be formal about it, set b(n) = a(n)/2^n, then
b(n) = (2a(n - 1) + n2^n)/2^n
= 2a(n - 1)/2^n + n
= (2b(n - 1)2^(n - 1))/2^n + n
= b(n - 1) + n
$a(n) = 2^k ( a0 + \sum_{i = 1 }^n i $
b(n) - b(n - 1) = n
$\sum_{k=1}^n (b(k) - b(k - 1)) = \sum_{k=1}^n k$
impract1cal
oh ye this works really well , it didint seem right to me when i first look at it , but now it makes sense thanks
hahaha
anyways
b(n) - b(0) = 1/2n(n+1)
b(n) = b(0) + 1/2n(n+1)
which means a(n) = 2^n(b(0) + 1/2n(n+1))
note that b(0) = a(0)/2^0 = a(0)
oh yes , thats the closed form , thanks for your explanation
try proving this tho, it seems like a fun exercise anyway
proof that $a(n) = 2^k a(n-k) + 2^{n-1} k (2n + 1 - k)$
impract1cal
yeah
there is a small error
i think its in my proof
nt
not sure
-2K - K , it should be -2K + K
im not sure why
I did ended up getting it, thanks for the help