diff --git a/src/numbers.jl b/src/numbers.jl index 4465c77..4039f9f 100644 --- a/src/numbers.jl +++ b/src/numbers.jl @@ -68,7 +68,7 @@ end """ narayana(n,k) -Compute the Narayana number `N(n,k)`` given by ``\\frac{1}{n}\\binom{n}{k}\\binom{n}{k-1}`` +Compute the Narayana number `N(n,k)` given by ``\\frac{1}{n}\\binom{n}{k}\\binom{n}{k-1}`` Wikipedia : https://en.wikipedia.org/wiki/Narayana_number """ function narayana(bn::Integer,bk::Integer) diff --git a/src/partitions.jl b/src/partitions.jl index 9ba2969..305e23b 100644 --- a/src/partitions.jl +++ b/src/partitions.jl @@ -399,9 +399,9 @@ integers ``p_1``, ``p_2``, etc. For integers ``i_1``, ``i_2``, ``i_3``, this is equivalent to finding the largest ``x`` such that -```math -i_1^n_1 i_2^n_2 i_3^n_3 \\leq x -``` + +``i_1^{n_1} i_2^{n_2} i_3^{n_3} \\leq x`` + for integers ``n_1``, ``n_2``, ``n_3``. """ function prevprod(a::Vector{Int}, x)