cfahlgren1's picture
download
raw
492 Bytes
import Mathlib
namespace OAI
namespace ShortEgyptian
def IsExpansion (a b : ℕ) (ns : List ℕ) : Prop :=
ns.Pairwise (· < ·) ∧ (∀ n ∈ ns, 2 ≤ n) ∧
(ns.map (fun n => (1 : ℚ) / (n : ℚ))).sum = (a : ℚ) / (b : ℚ)
noncomputable def minLength (a b : ℕ) : ℕ :=
sInf {k : ℕ | ∃ ns : List ℕ, IsExpansion a b ns ∧ ns.length = k}
noncomputable def maxMinLength (b : ℕ) : ℕ :=
(Finset.Ico 1 b).sup (fun a => minLength a b)
end ShortEgyptian
end OAI

Xet Storage Details

Size:
492 Bytes
·
Xet hash:
71b7baeb818853c8d6f8114eacadf58badd4c9ddcfd4265e47d2e6b8ed350887

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.