If $f: \mathbb{R} \to (0, \infty)$ is continuous and $$\lim_{x\to \infty}\frac{f(x)}{f(x+1)}=0$$ then calculate $$\lim_{n\to \infty} \frac{1}{n} \int_0^n f(x) dx$$
I tried solving by writing the definition of continuity but didn't find the right way to finish it, also tried taking logarithm, no result there neither.
The condition that $f(x)/f(x+1) \to 0$ means that, eventually, $f(x+1)$ is significantly larger than $f(x)$ which is effectively a rapid growth condition that is the opposite of what is required for the integral to converge.
The stated condition implies there is a whole number $M$ with the property that where $x > M$ implies $\dfrac{f(x)}{f(x+1)} \le \frac 12$, or equivalently $f(x+1) \ge 2 f(x)$.
Let $a_n = \min\{ f(x) : M+n \le x \le M+n+1\}$. Since $f$ is positive valued and continuous you have $a_0 > 0$, and if $x \in [M+n,M+n+1]$ then $$f(x) \ge 2 f(x-1) \ge a_{n-1}$$ and by taking the minimum over all $x$ in the interval you find $a_n \ge 2 a_{n-1}$.
You then obtain $$\int_M^{M+n} f(x) \, dx = \sum_{k=0}^{n-1} \int_{M+k}^{M+k+1} f(x) \, dx \ge \sum_{k=0}^{n-1} a_k = (2^n-1)a_0$$
for all $n$. From here you should be able to verify $$\frac 1n \int_0^n f(x) \, dx = \infty.$$