Let $\varphi(n) = \sharp\{1\leq x \leq n : (x,n) = 1\}$. Then $\liminf_{n\to\infty} \frac{\varphi(n)}{n} = 1$. My attempt: $\inf_{k\geq n}\frac{\varphi(k)}{k} \leq 1$ since for $n = 2$, this infimum equals $1$, we have that $\sup_{n\geq 1} \inf_{k\geq n} \frac{\varphi(k)}{k} = 1$.
Okay, that proof didn't work because $\varphi(2)/2 = 0.5$, but letting $n = 1$, we have $\varphi(1)/1 = 1$. QED
Is that correct? Then my book is wrong:
Let $(a_{n})$ be a sequence in $\mathbb{R}$ and let $l \in \mathbb{R}$. Then it can be shown that $l = \liminf_{n \to \infty}a_{n}$ if and only if for every $\varepsilon > 0$, i) there is some $N \geq 1$ such that $\inf_{n \geq N}a_{n} > l-\varepsilon$ and ii) for every $N \geq 1$ there is some $n \geq N$ such that $a_{n} < l + \varepsilon$.
Let $a_{n} := \varphi(n)/n$ for all $n \geq 1$. We claim that $\liminf a_{n} = 0$. Since $a_{n} > 0$ for all $n \geq 1$, Property i) holds for every $\varepsilon > 0$. But because of the prime form of $a_{n}$, for every $\varepsilon > 0$ we have $a_{n} < \varepsilon$ for large $n$, and Property ii) follows.
Thus $\liminf a_{n} = 0$.