I've been studying the skiplist analysis from the open data structures book here: Open Data Structures
I've understood the first 3 lemma's, (after looking at how they use indicator variables in the section 1.3.4 of the book). However, Lemma 4.4 seems pretty vague. Especially, how is $$\sum_{r=1}^{\lfloor\log n\rfloor}1 + \sum_{r=\lfloor\log n\rfloor+1}^\infty n/2^r\leq\log n + \sum_{r=0}^\infty 1/2^r\,?$$