Sylvester sequence #
This file introduces the Sylvester's sequence. This is sequence A000058 in [OEISFI25].
Implementation notes #
We follow the presentantion from Wikipedia.
Main results #
- Basic facts.
- Recurrence formula.
- Sylvester sequence is strictly monotonic.
- Pairwise co-primality.
- Explicit formula.
References #
This recurrence motivates the alternative name of Euclid numbers: $$ \mathrm{sylvester}~n = 1 + \prod_{i=0}^{n-1} \mathrm{sylvester}~i, $$ assuming the product over the empty set to be 1.
The constant that gives an explicit formula for the Sylvester sequence: $$ \mathrm{sylvester}~n = \left\lfloor\mathrm{sylvesterConstant}^{2^{n+1}} + \frac{1}{2}\right\rfloor, $$ for all natural $n$. The constant is approximately $1.2640847\ldots$.
Equations
- sylvesterConstant = ⨆ (i : ℕ), sylvesterBelow✝ i