#4213: Bug in Permutations(n, k)
---------------------------+------------------------------------------------
Reporter: anakha | Owner: mhansen
Type: defect | Status: new
Priority: major | Milestone: sage-3.1.3
Component: combinatorics | Keywords:
---------------------------+------------------------------------------------
{{{
sage: list(Permutations([1,2,3,4,5], 4))
[ ...
[2, 3, 1, 5],
[2, 3, 3, 1],
[2, 3, 3, 4],
[2, 3, 3, 5],
[2, 3, 4, 1],
...
[3, 2, 1, 5],
[3, 2, 2, 1],
[3, 2, 2, 4],
[3, 2, 2, 5],
[3, 2, 4, 1],
...
[4, 2, 1, 5],
[4, 2, 2, 1],
[4, 2, 2, 3],
[4, 2, 2, 5],
[4, 2, 3, 1],
...
[5, 2, 1, 4],
[5, 2, 2, 1],
[5, 2, 2, 3],
[5, 2, 2, 4],
[5, 2, 3, 1],
}}}
Only the buggy parts are shown.
This does not occur for lists smaller that 5 or when len(n) == k.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4213>
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
-~----------~----~----~----~------~----~------~--~---