2

I saw this question Can I simplify log(n+1) before showing that it is in O(log n)? and wanted to know if a similar situation was also true.

Namely, is $\log(n-1) \in \Omega(\log(n))$?

Yuval Filmus
  • 276,994
  • 27
  • 311
  • 503
imconfused
  • 21
  • 2

2 Answers2

2

As you have seen, $\log(n+1) \in \mathcal{O}(\log n)$. That means that $\log n \in \Omega(\log( n + 1))$. Now you can change $n$ with $n-1$ and have your answer.

To be more precise, $\log(\alpha n^{\beta} + \gamma) \in \Theta(\log n)$ for any $\alpha, \beta, \gamma \in \mathbb{R}_{>0}$.

Nathaniel
  • 15,071
  • 2
  • 27
  • 52
  • Hope Your $\mathbb{R}_+^*$ doesn't contain $\alpha=0$, as then we have constant on left side. – zkutch Feb 24 '21 at 10:47
  • Sorry, I am using French notations, as explained in https://en.wikipedia.org/wiki/Real_number#Vocabulary_and_notation It indeed means "any positive real number not zero". I modified my answer, I hope it is clearer now. – Nathaniel Feb 24 '21 at 10:50
  • Thank you! @Nathaniel – imconfused Feb 25 '21 at 06:58
2

Having $n-1 \gt \sqrt{n}$, when $n \gt 3$ we can write $$\log (n-1) \gt \log \sqrt{n} = \frac{1}{2}\log n$$ So, taking $N=3$ and $C=\frac{1}{2}\gt 0$ we fulfilled definition for $\Omega$.

zkutch
  • 2,364
  • 1
  • 7
  • 14