#How do I express this sum in terms of n?
86 messages · Page 1 of 1 (latest)
How do I express this sum in terms of n?
do you still need help with this?
I do
I separated sum(n - i + 1) into sum(n) - sum(i) + sum(1)
My main problem is the sum(i)
Wolfram alpha says it's equal to (n(n+2))/8, but I'm having trouble understanding why
wanna hop on call. i can help
can't rn
So you are adding n to itself n/2 times
What do you get from that
And you are adding 1 n/2 times
Those 2 sums should be easy to convert to a normal equation
n * (n/2) for the first one and n/2 for the second sum
But I'm still confused for the sum of i
Ok but that alright since you be gotten 3 sums down to 1
Now we are just looking at the sum of 1 + 2 + 3 … n/2
There’s a famous formula for this
But you might not know it
@flint gulch
If you don’t know it I can teach it to you
Just ping me if you want to learn
Why not
Well I tried replacing n with n/2 and my answer ended up being wrong
(m^2 + m)/2
Try changing the m back to n/2 now
No
It’s (n^2/2 + n)/4
But now you can put all these equations back into one
n + (your three equations)
Let’s actually keep this so we can put all the number together
Here
So it’s n + (n^2 + n + n^2/4 + n/2)/2
Hold on I got something messed up 💀
wait up
Oh it’s - the sum of i
So it’s n + (n^2 + n - n^2/4 - n/2)/2
n + n(3n/4 + 1/2)/2
And from checking that is correct
Simplify a bit more for
n(1 + (3n/2 + 1)/4)
Or on paper to write it a bit neater
Do you understand everything @flint gulch
@keen burrow I'm still confused, because apparently I'm supposed to get (3n^2 + 2n)/2 for the sum
Wdym
And also when I did all the calculations myself I got (3n^2 + 6n)/8
For what sum
I mean for the whole sum of n - i + 1
Also I'm representing the result as a trinomial because it's for a time complexity function
My answer is correct let me just check if those are also =
Alright, it might be the answer in my textbook that's wrong then
Or how I approached the problem
That’s not right
Just try it with any equation and you will find it to be wrong
You might’ve went wrong somewhere
Cus ur answer is closer
I'll check tomorrow but for now it's 1am so I'll just mark this as solved
Wait meant to be a plus
Thanks again :D
I think so yeah
When you moved it in you should’ve changed the denominator from 1 to 2
How do I mark this as solved btw?
.solved
.solved
Post marked as solved by @flint gulch.
Use .unsolved if this was a mistake.
Thanks
I like sum problems lol