Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrangements / PermutationsNK iterator is broken #4252

Closed
saliola opened this issue Oct 7, 2008 · 1 comment
Closed

Arrangements / PermutationsNK iterator is broken #4252

saliola opened this issue Oct 7, 2008 · 1 comment

Comments

@saliola
Copy link

saliola commented Oct 7, 2008

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), ....

CC: @sagetrac-sage-combinat

Component: combinatorics

Issue created by migration from https://trac.sagemath.org/ticket/4252

@mwhansen
Copy link
Contributor

mwhansen commented Oct 7, 2008

comment:1

This is a duplicate of #4213 which has been fixed in 3.1.3.

@mwhansen mwhansen removed this from the sage-3.2 milestone Oct 7, 2008
@mwhansen mwhansen closed this as completed Oct 7, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants