How many cigarettes does someone that takes less and less cigarettes over time smokes after a known period of time? I just ask this question by curiosity, nothibg else. It’s not even the original question of the problem in my textbook I’m taking the question from, but it’s fascinatingly complicated (It’s in french, ‘cause I’m a Quebecker, but I’ve translated for you guys):
A method to make soemone stop smoking consists of increasing by 2 % each day the interval of time between smoking 2 cigarettes (consider the event of a cigarette smoked instantaneous), so, at day 1, we start with regular intervals fo all the the cigarettes of the day; day 2, all cigarettes smoked are spaced by 1.02 times the intervals of yesterday; like this equation:
f(x) = 1.02^[x]
Where f(x) is the duration of the intervals in hours and x the amount of days after the start of the method on someone (and the brackets means “the integer part of the number x”, like [3.41]=3; [e]=[2.718...]=2)
So, my question is this: how many cigarettes does someone smokes, following this pattern of taking less and less cigarettes over time, in function of time x (in days)?
I’m stuck with this thought experiment, can you help me?
 A: First I'm going to assume that the first cigarette is smoked after the first interval (as otherwise we would have one cigarette each day no matter what and therefore infinite cigarettes in total). Also when it's 00:00 a new interval starts, no matter when his last cigarette was. Our patient smokes 24/7. When the interval hits 24 hours, he doesn't smoke anymore.
Then the amount of cigarettes on day $x$ is $\lfloor 24/f(x)\rfloor$. He stops smoking when we hit $f(x)>24$ which is the case at $x=161$. That means we can calculate the amount of cigarettes as $\sum_{x=0}^{160}\lfloor 24/f(x)\rfloor = 1100$. Honestly I don't know how to resolve those rounding brackets, so the only way for me is to (let my computer) work through that sum.
On the other hand we could be generous and tell him that at the end of the day, if half an interval of that day has passed, he may smoke half a cigarette, quarter of a cigarette if 1/4 of an interval passed etc. That makes it so we can drop the rounding brackets and get this infinite sum: $\sum_{x=0}^{\infty} 24/f(x) = \sum_{x=0}^{\infty} 24(\frac{1}{1.02})^x$, so just a geometric sum we can work out to be $1224$.
