/- 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. -/ import FormalConjecturesUtil

Integer part of $\mathrm{prime}(n)/\pi(n)$

Here $\mathrm{prime}(n)$ is the $n$-th prime number, and $\pi(n)$ is the prime-counting function.

References:

namespace OeisA111114open Nat

a n is the integer part of $\mathrm{prime}(n)/\pi(n)$. Here $\mathrm{prime}(n)$ is the $n$-th prime number, and $\pi(n)$ is the prime-counting function. The sequence is defined for $n \ge 2$.

noncomputable def a (n : ) : := (Nat.nth Nat.Prime (n - 1)) / (Nat.primeCounting n)this:nth Nat.Prime 1 = 33 / primeCounting 2 = 3 All goals completed! 🐙this:nth Nat.Prime 2 = 55 / primeCounting 3 = 2 All goals completed! 🐙this:nth Nat.Prime 3 = 77 / primeCounting 4 = 3 All goals completed! 🐙this:nth Nat.Prime 4 = 1111 / primeCounting 5 = 3 All goals completed! 🐙open Filter

Conjecture: As $n \rightarrow \infty$, there are infinitely many n's such that $a(n)$ is greater than $a(n+1)$.

@[category research open, AMS 11] theorem conjecture : ∃ᶠ n in atTop, a n > a (n + 1) := ∃ᶠ (n : ) in atTop, a n > a (n + 1) All goals completed! 🐙end OeisA111114