On Saturday, October 31, 2015 at 8:31:59 AM UTC-7, prateek sharma wrote:
>
> From the given code for 
> sage:5.multifactorial(3)
> 5
> But the result should be 10.
>

There has been work on this:

http://trac.sagemath.org/ticket/5415

but it looks like momentum was lost. There seems to be some disagreement on 
what "multifactorial" should be. The description says:

For k=1 this is the standard factorial, and for k greater than one it is 
the product of every k-th terms down from self to k.

which for n=5 and k=3 would indeed be the product of just five (since the 
next term would be 5-3=2, which is smaller than 3)

so the output you get does seem to be in accordance with the definition 
that sage's documentation uses. It may well be (and that is what the ticket 
indicates too) that sage's documentation does not agree with common 
mathematical convention. If you are interested in helping to get this issue 
resolved, the appropriate place to start would be the linked ticket.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to