Maths / Compsci help
Moderator: Alyrium Denryle
Maths / Compsci help
I've run into a slight homework problem this evening:
I can't think of a way to get a suitable c2, it obviously needs to be >= 5n+40, but any constant will surely become too small for a sufficiently large n? Any ideas of how I should be approaching this?
Thanks,
I can't think of a way to get a suitable c2, it obviously needs to be >= 5n+40, but any constant will surely become too small for a sufficiently large n? Any ideas of how I should be approaching this?
Thanks,
- Darth Holbytlan
- Padawan Learner
- Posts: 405
- Joined: 2007-01-18 12:20am
- Location: Portland, Oregon
Re: Maths / Compsci help
This is incorrect. You need to work straight from your equations. Solve for c_2 from c_2*7^n >= 7^n + 5n + 50. Then pick a c_2 that fits that.Pezzoni wrote:I can't think of a way to get a suitable c2, it obviously needs to be >= 5n+40, but any constant will surely become too small for a sufficiently large n? Any ideas of how I should be approaching this?
- Xenophobe3691
- Sith Marauder
- Posts: 4334
- Joined: 2002-07-24 08:55am
- Location: University of Central Florida, Orlando, FL
- Contact:
Hm, breaking it down:
Taking the limit as n -> Infinity, the 7^n term blows up enormously faster than the rest of the terms in f(x). Just look at this chart:
You can just multiply 7^n it by any number greater than 1, and you'll eventually surpass f(x). I'd use 2, just for the sake of using a whole number.
Taking the limit as n -> Infinity, the 7^n term blows up enormously faster than the rest of the terms in f(x). Just look at this chart:
Code: Select all
n 7^n 7^n + 5n + 40
---------------------------------
1 7 52
2 49 99
3 343 398
4 2401 2461
- Xenophobe3691
- Sith Marauder
- Posts: 4334
- Joined: 2002-07-24 08:55am
- Location: University of Central Florida, Orlando, FL
- Contact:
- Darth Holbytlan
- Padawan Learner
- Posts: 405
- Joined: 2007-01-18 12:20am
- Location: Portland, Oregon
I was trying to avoid simply handing out an answer, but that seems to be moot now. So, yeah, f(n)/g(n) is where I was going with that:
c_2*7^n >= 7^n + 5n + 40
c_2 >= 1 + (5n + 40)/7^n
Since lim_{n→∞} 1 + (5n + 40)/7^n = 1, we know that for any c_2 > 1, there exists an n_0 such that for all n >= n_0, c_2 > 1 + (5n + 40)/7^n. (Definition of limit)
Since any reasonable c_2 will work, you don't really need to find a particular one. Proving that one exists is good enough.
c_2*7^n >= 7^n + 5n + 40
c_2 >= 1 + (5n + 40)/7^n
Since lim_{n→∞} 1 + (5n + 40)/7^n = 1, we know that for any c_2 > 1, there exists an n_0 such that for all n >= n_0, c_2 > 1 + (5n + 40)/7^n. (Definition of limit)
Since any reasonable c_2 will work, you don't really need to find a particular one. Proving that one exists is good enough.