Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There's the method multifactorial(2) on integers:

sage: 6.multifactorial(2)
48
sage: 7.multifactorial(2)
105

You might want to check the definition used there fits your needs.