Hello fellow humans,
Sequence
A007978 lists the least non-divisor of n. The first 10 terms, starting at n=1, are 2, 3, 2, 3, 2, 4, 2, 3, 2, 3.
It is not hard to prove that every term in this sequence is a prime power, and that every prime power appears in the sequence.
Sequence
A396771 lists the second least non-divisor of n. The first 10 terms, starting at n=1, are 3, 4, 4, 5, 3, 5, 3, 5, 4, 4.
One can show m is a value of this sequence if and only if m ≥ 3 and m is either a prime power or twice a prime power.
One can consider higher non-divisors. The OEIS has no entry for the third least non-divisor of n.
Nevertheless, it is not too difficult to prove that m is the third least non-divisor of some integer n if and only if
m ≥ 4 and m = a * p^s where a is in {1, 2, 3}, p is prime, and s ≥ 1.
This suggests a natural conjecture. Let e_r (n) be the r-th least positive integer that does not divide n.
Then m occurs as a value of e_r if and only if m ≥ r + 1 and m = a * p^s where p is prime, s ≥ 1, and 1 ≤ a ≤ r.
One direction is routine. Suppose that e_r(n) = m. It is clear that m ≥ r + 1, since 1 is a divisor of n. Since m does not divide n,
there exists a prime p so that s := ν_p(m) > v_p(n), where v_p(n) denotes the exponent of p in the prime factorization of n.
Let a = m / p^s. Then p^s, 2 * p^s, ..., a * p^s are non-divisors of n, and a * p^s = m, hence 1 ≤ a ≤ r.
I have a supposed proof of the other direction, generated using AI tools. The proof is only seven pages long,
but I hesitate to share it since it is difficult to read and there is a surfeit of AI-generated math papers.
Can anyone propose a more human proof?
Thanks,
David