Daniel Carrera wrote:
I found it. To understand the following, you should know that combinations are
also called "choose". When you write nCr(5;3) a mathematecian would write it like
this:
/ 5 \
\ 3 /
And read it as "5 choose 3".
This is because nCr(5;3) is the number of ways you can choose 3 items from a
collection of 5. So nCr is also called "choose".
The function "combina" corresponds to a function called "multichoose". That is,
you can choose the same object multiple times. And here is the MathWorld entry
about Multichoose:
http://mathworld.wolfram.com/Multichoose.html
And you can see that the numbers match.
It turns out that there is a short formula for Multichoose:
combina(a;b) == nCr(a+b-1 ; b)
How cool is that? :-)
Cheers,
So, if combin() is nCr, can you check and see if =permute is nPr?
Thanks!
--
Peter Kupfer
OOo user since 'OO4
http://peschtra.tripod.com/open_office/ooo_front.htm