Prove or disprove that $\sum_{n=1}^{\infty}\frac{\lambda(n)\mathbb{E}_{n\in\mathbb{N}}[a_n]}{n}=0$ for any choice of $(a_n)$

This identity is true, though somewhat tricky to prove and the infinite series here might only converge conditionally rather than absolutely.

The key lemma is

Lemma 1 (Fourier representation of averages along homogeneous arithmetic progressions). Let $a_n$ be a bounded sequentially summable sequence. Then there exist complex numbers $c_\xi$ for each $\xi \in {\mathbb Q}/{\mathbb Z}$ such that $\sum_{\xi \in {\mathbb Q}/{\mathbb Z}} |c_\xi|^2 \ll 1$ and $$ {\mathbb E}_{n \in {\mathbb N}} a_{kn} = \sum_{q|k; 1 \leq b < q; (b,q)=1} c_{b/q}.$$ for each natural number $k$.

Proof We first use the Furstenberg correspondence principle to move things to a compact abelian group (specifically, the profinite integers $\hat {\mathbb Z}$). It is convenient to introduce a generalised limit functional $\tilde \lim_{N \to \infty} \colon \ell^\infty({\mathbb N}) \to {\mathbb C}$ that is a continuous linear functional extending the usual limit functional (this can be created by the Hahn-Banach theorem or by using an ultrafilter). On every cyclic group ${\mathbb Z}/q{\mathbb Z}$ we then have a complex bounded density measure $\mu_q$ defined by $$ \mu_q(\{b \hbox{ mod } q \}) := \frac{1}{q} \tilde \lim_{N \to \infty} \frac{1}{N} \sum_{n=1}^N a_{b+nq}$$ for any integer $b$ (the particular choice of coset representative $b$ is not important). One can check that $\mu_q$ pushes forward to $\mu_{q'}$ under the quotient map from ${\mathbb Z}/q{\mathbb Z}$ to ${\mathbb Z}/q'{\mathbb Z}$ whenever $q'$ divides $q$, hence by the Kolmogorov extension theorem, there is a complex bounded density measure $\mu$ on the profinite integers $\hat {\mathbb Z}$ that pushes forward to all of the $\mu_q$, in particular $$ \mu( b + q \hat {\mathbb Z} ) = \frac{1}{q} \tilde \lim_{N \to \infty} \frac{1}{N} \sum_{n=1}^N a_{b+nq}$$ for any residue class $b \hbox{ mod } q$. Specialising to $b=0$ and using the sequential summability hypothesis we conclude $$ \mu( q \hat {\mathbb Z} ) = \frac{1}{q} {\mathbb E}_{n \in {\mathbb N}} a_{qn}.$$ Now we use the Fourier transform to move to frequency space. The Radon-Nikodym derivative of $\mu_q$ with respect to Haar probability measure on ${\mathbb Z}/q{\mathbb Z}$ is bounded, hence the Radon-Nikodym derivative of $\mu$ with respect to Haar probability measure $\mathrm{Haar}_{\hat {\mathbb Z}}$ on the compact abelian group $\hat {\mathbb Z}$ is bounded. By Fourier expansion and Plancherel's theorem on $\hat {\mathbb Z}$ (which has Pontryagin dual ${\mathbb Q}/{\mathbb Z}$) we conclude the Fourier expansion $$ \frac{d\mu}{d\mathrm{Haar}_{\hat {\mathbb Z}}}(x) = \sum_{\xi \in {\mathbb Q}/{\mathbb Z}} c_\xi e^{2\pi i x \xi} $$ (in an $L^2$ sense) where $x \xi \in {\mathbb R}/{\mathbb Z}$ is defined in the obvious fashion and the Fourier coefficients $c_\xi$ are square-summable. In particular (by Parseval or a suitable form of Poisson summation) we have $$ \mu( q \hat {\mathbb Z} ) = \frac{1}{q} \sum_{b \in {\mathbb Z}/q{\mathbb Z}} c_{b/q}$$ and thus we have a compact formula for the average values of the $a_{kn}$ in terms of the Fourier coefficients: $$ {\mathbb E}_{n \in {\mathbb N}} a_{kn} = \sum_{b \in {\mathbb Z}/k{\mathbb Z}} c_{b/k}.$$ Reducing the fractions to lowest terms we conclude that $$ {\mathbb E}_{n \in {\mathbb N}} a_{kn} = \sum_{q|k; 1 \leq b < q; (b,q)=1} c_{b/q}$$ as desired. $\Box$

Remark 2 One can avoid the use of generalised limits (and thus the axiom of choice or some slightly weaker version thereof) by establishing a truncated version of this lemma in which one only considers those natural numbers $k$ dividing some large modulus $Q$, and replaces the averages ${\mathbb E}_{n \in {\mathbb N}}$ by ${\mathbb E}_{n \in [N]}$ for some $N$ much larger than $Q$. Then one has a similar formula with errors that go to zero in the limit $N \to \infty$ (for $Q$ fixed). One can then either recover the full strength of Lemma 1 by any number of standard compactness arguments (e.g., Tychonoff, Banach-Alaoglu, Hahn-Banach, Arzela-Ascoli, or ultrafilters) or else just use the truncated version in the arguments below and manage all the error terms that appear. In particular it is possible to solve the problem without use of the axiom of choice. I leave these variations of the argument to the interested reader. $\diamond$

Remark 3 The Fourier coefficients $c_{b/q}$ can be given explicitly by the formula $$ c_{b/q} = \tilde \lim_{N \to \infty} \frac{1}{N} \sum_{n=1}^N a_n e(-nb/q)$$ (the minus sign in the exponential $e(\theta) := e^{2\pi i \theta}$ is an arbitrary convention and may be omitted if desired). The desired representation then follows from the Fourier inversion formula in ${\mathbb Z}/k{\mathbb Z}$, and the square-summability follows from the large sieve (e.g., equation (20) from this paper of Montgomery; many other references exist for this). $\diamond$

Returning to the problem, we use the above lemma to write $$ \sum_{k=1}^N \frac{\lambda(k) {\mathbb E}_{n \in {\mathbb N}} a_{kn}}{k} = \sum_{k=1}^N \frac{\lambda(k) \sum_{q|k; 1 \leq b < q; (b,q)=1} c_{b/q}}{k}$$ $$ = \sum_{q \leq N} \sum_{1 \leq b < q: (b,q)=1} c_{b/q} \sum_{l \leq N/q} \frac{\lambda(ql)}{ql}.$$ Note the cancellation present in the inner sum. To exploit this cancellation, let $\varepsilon>0$ be a small parameter. For $N$ large enough, we have from dominated convergence that $$ \sum_{\varepsilon N \leq q \leq N} \sum_{1 \leq b < q: (b,q)=1} |c_{b/q}|^2 \leq \varepsilon$$ and $$ \sum_{q \leq \varepsilon N} \sum_{1 \leq b < q: (b,q)=1} |c_{b/q}|^2 \ll 1$$ so by Cauchy-Schwarz one can bound the preceding expression in magnitude by $$ \ll \left(\sum_{q \leq \varepsilon N} \sum_{1 \leq b < q: (b,q)=1} \left|\sum_{l \leq N/q} \frac{\lambda(ql)}{ql}\right|^2 + \varepsilon \sum_{\varepsilon N \leq q \leq N} \sum_{1 \leq b < q: (b,q)=1} \left|\sum_{l \leq N/q} \frac{\lambda(ql)}{ql}\right|^2\right)^{1/2}.$$ There are at most $q$ values of $b$ for each $q$, so this can be bounded by $$ \ll \left(\sum_{q \leq \varepsilon N} \frac{1}{q} \left|\sum_{l \leq N/q} \frac{\lambda(l)}{l}\right|^2 + \varepsilon \sum_{\varepsilon N \leq q \leq N} \frac{1}{q} \left|\sum_{l \leq N/q} \frac{\lambda(l)}{l}\right|^2\right)^{1/2}.$$ From the prime number theorem one has $$ \sum_{l \leq N/q} \frac{\lambda(l)}{l} \ll \log^{-10}(2+N/q)$$ (say). From this and some calculation one can bound the preceding expression by $$ (\log^{-19}(1/\varepsilon) + \varepsilon)^{1/2}$$ which goes to zero as $\varepsilon \to 0$, giving the claim.


Here is a more classical (more streamlined) version of Terry's nice argument. It avoids any reference to generalized limits (hence the axiom of choice).

We shall only use that $a_n$ is sequentially summable and bounded in square mean: $$\sum_{n\leq N}|a_n|^2\ll N.$$ By assumption, the limits $$f(k):=\lim_{N\to\infty}\frac{1}{N}\sum_{n\leq N}a_{kn}$$ exist, and we want to show that $$\sum_{k=1}^\infty\frac{\lambda(k)f(k)}{k}=0.\tag{$\ast$}$$ Lemma. The multiplicative convolution $g:=\mu\ast f$ satisfies $$\sum_{q=1}^\infty\frac{|g(q)|^2}{\varphi(q)}<\infty.$$ Proof. For the exponential sums $$S_N(x):=\sum_{n\leq N} a_n e(nx),$$ we observe that $$\sum_{q\mid k}\sideset{}{^*}\sum_{b\bmod q}S_N(b/q)=\sum_{c\bmod k}S_N(c/k)=k\sum_{\substack{n\leq N\\k\mid n}}a_n=k\sum_{m\leq N/k}a_{km}.$$ Dividing by $N$ and letting $N\to\infty$, the right hand side tends to $f(k)$. Therefore, $$f(k)=\lim_{N\to\infty}\frac{1}{N}\sum_{q\mid k}\sideset{}{^*}\sum_{b\bmod q}S_N(b/q).$$ It follows that $$g(q)=\lim_{N\to\infty}\frac{1}{N}\sideset{}{^*}\sum_{b\bmod q}S_N(b/q).$$ In particular, the limit on the right hand side exists. Using the Cauchy-Schwarz inequality and the large sieve inequality, we infer $$\sum_{q\leq Q}\frac{|g(q)|^2}{\varphi(q)}\leq\limsup_{N\to\infty}\frac{1}{N^2}\sum_{q\leq Q}\sideset{}{^*}\sum_{b\bmod q}|S_N(b/q)|^2\leq\limsup_{N\to\infty}\frac{1}{N}\sum_{n\leq N}|a_n|^2\ll 1.$$ Letting $Q$ tend to infinity, the inequality in the lemma follows. $\Box$

For $g$ as in the Lemma, we have $f=1\ast g$, hence also $$\sum_{k\leq K}\frac{\lambda(k)f(k)}{k}=\sum_{k\leq K}\frac{\lambda(k)}{k}\sum_{q\mid k}g(q)=\sum_{q\leq K}g(q)\sum_{\substack{k\leq K\\q\mid k}}\frac{\lambda(k)}{k} =\sum_{q\leq K}\frac{g(q)\lambda(q)}{q}\sum_{\ell\leq K/q}\frac{\lambda(\ell)}{\ell}.$$ In particular, $$\left|\sum_{k\leq K}\frac{\lambda(k)f(k)}{k}\right|\leq \sum_{q\leq K}\frac{|g(q)|}{q}\left|\sum_{\ell\leq K/q}\frac{\lambda(\ell)}{\ell}\right|.$$ Let us fix a large $L>0$. We cut the $q$-sum into two parts $q\leq K/L$ and $q>K/L$, and we apply Cauchy-Schwarz to both parts: $$\left|\sum_{k\leq K}\frac{\lambda(k)f(k)}{k}\right|^2\ll \left(\sum_{q\leq K/L}\frac{|g(q)|^2}{\varphi(q)}\right)\left(\sum_{q\leq K/L}\frac{\varphi(q)}{q^2}\left|\sum_{\ell\leq K/q}\frac{\lambda(\ell)}{\ell}\right|^2\right) +\left(\sum_{K/L<q\leq K}\frac{|g(q)|^2}{\varphi(q)}\right)\left(\sum_{K/L<q\leq K}\frac{\varphi(q)}{q^2}\left|\sum_{\ell\leq K/q}\frac{\lambda(\ell)}{\ell}\right|^2\right).$$ Now we let $K\to\infty$, and apply the Lemma. On the right hand side, the first $q$-sum is $O(1)$, the third $q$-sum is $o_L(1)$, and the fourth $q$-sum is $O_L(1)$. As a result, $$\limsup_{K\to\infty}\left|\sum_{k\leq K}\frac{\lambda(k)f(k)}{k}\right|^2 \ll\limsup_{K\to\infty}\sum_{q\leq K/L}\frac{\varphi(q)}{q^2}\left|\sum_{\ell\leq K/q}\frac{\lambda(\ell)}{\ell}\right|^2.$$ By the Prime Number Theorem, the $\ell$-sum is $\ll 1/\log(K/q)$, where of course $K/q\geq L$. By applying a dyadic decomposition for $q$, we conclude that $$\limsup_{K\to\infty}\left|\sum_{k\leq K}\frac{\lambda(k)f(k)}{k}\right|^2 \ll\frac{1}{\log L}.$$ Letting $L\to\infty$, we see that the left hand side is zero. We have proved $(\ast)$.