In the book "Introduction to Algorithms", by CLRS, page 54, the following relations are stated (enumeration is mine):
For any real number $x\geq 0$ and integers $a,b>0$, $$ \begin{aligned} (1)\qquad\left\lceil\dfrac{\lceil x/a\rceil}{b}\right\rceil&=\left\lceil\dfrac{x}{ab}\right\rceil\\ (2)\qquad\qquad\left\lceil\dfrac{a}{b}\right\rceil&\leq\dfrac{a+(b-1)}{b} \end{aligned} $$
I'd like to come up with a proof for these relations, but I'm getting nowhere.
For (1), I understand that I need to somehow prove that, for $m=\lceil x/a\rceil$ and $n=\lceil x/ab\rceil$, it is the case that
$$ \lceil n/b\rceil-1<n/b\leq\lceil n/b\rceil\text{ if and only if }m-1<x/a\leq m $$
I tried manipulating different inequalities but the obstacle I'm facing is that I can't find any useful way to relate $n$ with $m$. Ideally, I imagine that (somehow) I should be able to remove the ceiling signs around $\lceil x/a\rceil$, manipulate the resulting expression to come up with $x/ab$, and then return the ceiling signs to get $\lceil x/ab\rceil$. I don't see how this could be possible, though.
For (2), I started in a similar fasion. Letting $n=\lceil a/b\rceil$, I know from the definition of the ceiling function that $n-1<a/b\leq n$. So, what I want to prove is that $$ n\leq\dfrac{a+b-1}{b} $$ I thought this could be proven in a straighforward fashion using algebra, but the obstacle I'm facing is that the relation has a $\leq$ sign, instead of a $<$ sign (which I can easily obtain from the definition of the ceiling function).
Any tips on how I could get started with these proofs will be very much appreciated.