Skip to content

Commit

Permalink
narana and prevprod tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AshtonSBradley committed Nov 15, 2021
1 parent ebc4d67 commit 0acfb8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/numbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/partitions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0acfb8e

Please sign in to comment.