#4252: Arrangements / PermutationsNK iterator is broken
---------------------------+------------------------------------------------
Reporter: saliola | Owner: mhansen
Type: defect | Status: new
Priority: major | Milestone: sage-3.2
Component: combinatorics | Keywords:
---------------------------+------------------------------------------------
{{{
sage: Arrangements(range(5),4).count()
116
sage: len(list(sage.combinat.permutation.PermutationsNK(5,4).iterator()))
116
sage: factorial(5)/factorial(5-4)
120
}}}
They should all be 120. This also doesn't work for the pairs: (4,4), (5,
4), (5, 5), (6, 4), (6, 5), (6, 6), ....
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4252>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---