/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/modulepublicimportFormalConjecturesUtil
Given an infinite sequence of positive integers $A = {n_1 < n_2 < \cdots}$, phiSeq n k is
$\phi_A(k)$: the number of $1\leq m\leq n_k$ such that $\frac{m}{n_k}$ cannot be written as
$\frac{b}{n_j}$ for any integer $b$ and any $1\leq j<k$; equivalently,
$$
\frac{n_k}{(m,n_k)}\nmid n_j
$$
for all $1\leq j<k$.
Let $A={n_1<n_2<\cdots}$ be an infinite sequence of positive integers, and let $\phi_A(k)$
count the number of $1\leq m\leq n_k$ such that the fraction $\frac{m}{n_k}$ cannot be written
as $\frac{b}{n_j}$ for any integer $b$ and any $j<k$; equivalently,
$$
\frac{n_k}{(m,n_k)}\nmid n_j
$$
for all $1\leq j<k$.
Is there a sequence $A$ such that
$$
\lim_{N\to \infty}\frac{1}{N}\sum_{k\leq N}\frac{\phi_A(k)}{n_k}=0?
$$
This was solved by Haight [Ha] who proved that such a sequence does exist (contrary to Erdős'
expectations).
The study of $\phi_A$ was introduced by Cassels [Ca50b], who proved that there exist sequences
such that
$$
\liminf_{N\to \infty}\frac{1}{N}\sum_{k\leq N}\frac{\phi_A(k)}{n_k}=0.
$$