- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hi! (Wave)
I want to show that $\forall a,b$ with $b>0$:
$$(n+a)^b=\Theta(n^b)$$
According to my notes, it is like that:
$$(1)+(2) \Rightarrow (n+a)^b=\Theta(n^b), \forall n \geq 2 \lceil |a| \rceil$$(Sweating)
Couldn't we also show that $(n+a)^b=\Theta(n^b)$ like that? (Thinking)
$$(n+a)^b=\sum_{k=0}^b n^k y^{b-k}= \binom{b}{0} a^b+ \binom{b}{1} n a^{b-1}+ \dots + \binom{b}{b}n^b$$
So, we have a polynomial with respect to $n$ and the dominant term is $n^b$.
Therefore, $(n+a)^b=\Theta(n^b)$.
(Thinking) (Blush)
I want to show that $\forall a,b$ with $b>0$:
$$(n+a)^b=\Theta(n^b)$$
According to my notes, it is like that:
- $\forall n \geq n_0=\lceil |a| \rceil$
$$(1) \Rightarrow (n+a)^b \leq (2n)^b=2^b n^b=c n^b \Rightarrow (n+a)^b=O(n^b), \forall n \geq \lceil |a| \rceil \text{ and } c=2^b$$
$$$$ - $\forall n \geq n_0=2 \lceil |a| \rceil$, it holds that:
$$n+a \geq n-|a| \geq n-\frac{n}{2}=\frac{n}{2} \Rightarrow (n+a)^b \geq \left ( \frac{n}{2}\right)^b=\left(\frac{1}{2} \right)^b n^b=c n^b \Rightarrow (n+a)^b=\Omega(n^b) \forall n \geq 2 \lceil |a| \rceil \text{ and } c=\left[ \frac{1}{2}\right]^b $$
$$(1)+(2) \Rightarrow (n+a)^b=\Theta(n^b), \forall n \geq 2 \lceil |a| \rceil$$(Sweating)
Couldn't we also show that $(n+a)^b=\Theta(n^b)$ like that? (Thinking)
$$(n+a)^b=\sum_{k=0}^b n^k y^{b-k}= \binom{b}{0} a^b+ \binom{b}{1} n a^{b-1}+ \dots + \binom{b}{b}n^b$$
So, we have a polynomial with respect to $n$ and the dominant term is $n^b$.
Therefore, $(n+a)^b=\Theta(n^b)$.
(Thinking) (Blush)