Ramanujan's Lost Notebook Part II, Ch. 12: ch12Upper
DefinitionRamanujanLostNotebook_PartII_ch12_ch12Uppernumber-theoryramanujan-lost-notebook
The upper cutoff u(n), p.322. The braces in the display are interpreted as rounding down to an integer, as in the earlier cutoff; the source does not explicitly define these braces. Values n=0,1 are unused.
Definition code
import Mathlib
import Definitions.Def_RamanujanLostNotebook_PartII_ch12_ch12PrimeProduct
namespace RamanujanLostNotebook.PartII
/-- The upper cutoff u(n), p.322. The braces in the display are interpreted
as rounding down to an integer, as in the earlier cutoff; the source does not
explicitly define these braces. Values n=0,1 are unused. -/
noncomputable def ch12Upper (epsilon : ℝ) (n : ℕ) : ℕ :=
Int.toNat ⌊((n : ℝ) * (1 + epsilon)) /
(Real.rpow (Real.log n) (3 / 2 : ℝ) * Real.sqrt ch12PrimeProduct)⌋
end RamanujanLostNotebook.PartII
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part II, Springer 2009, Chapter 12.