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

partition distinct parts max part error #13602

Closed
sagetrac-ahmorales mannequin opened this issue Oct 15, 2012 · 4 comments
Closed

partition distinct parts max part error #13602

sagetrac-ahmorales mannequin opened this issue Oct 15, 2012 · 4 comments

Comments

@sagetrac-ahmorales
Copy link
Mannequin

sagetrac-ahmorales mannequin commented Oct 15, 2012

In the documentation for Partitions:

http://www.sagemath.org/doc/reference/sage/combinat/partition.html

it says that the parameter max_slope=-1 yields partitions into distinct parts", and the parameter max_part=k specifies that all parts of the partitions are at most k. However when you specify both parameters together max_slope=-1, max_part=k it does not yield partitions into distinct parts and parts at most k.

Example:

Partitions(4,max_slope=-1,max_part=2).list()

returns

[[2,2]]

but according to the documentation the answer should be

[[]]

CC: @sagetrac-chrisjamesberg

Component: combinatorics

Keywords: partitions

Reviewer: Alejandro Morales

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

@sagetrac-ahmorales sagetrac-ahmorales mannequin added this to the sage-5.5 milestone Oct 15, 2012
@tscrim
Copy link
Collaborator

tscrim commented Oct 17, 2012

comment:1

This is essentially #12278. I've copied this example over there.

@tscrim tscrim removed this from the sage-5.5 milestone Oct 17, 2012
@AndrewMathas
Copy link
Member

comment:2

I agree that this is a duplicate, so it should be removed.

@jdemeyer
Copy link

Reviewer: Alejandro Morales

@jdemeyer
Copy link

Changed author from Alejandro Morales to none

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

3 participants