Hey Mike,
   We had the problem for Lyndon words 
(http://trac.sagemath.org/ticket/12997), but it was hacked around. So 
either we fix _sfc/_simple_fixed_content or we hack around it by stripping 
leading 0's and then modifying the yielded elements (by adding # leading 
0's).

Best,
Travis


On Tuesday, December 2, 2014 1:20:27 PM UTC-8, Mike Zabrocki wrote:
>
> I was double checking a problem from my combinatorics class (we are doing 
> PĆ³lya enumeration) and I came across what I think is a bug in the 
> necklaces.py code.
>
> I'll open a ticket, but I want to double check in case someone knows more 
> about this code than I do.
>
> sage: Necklaces([0,2,1]).list()
> [[1, 2, 2], [1, 2, 3], [1, 3, 2]]
> sage: Necklaces([0,2,1]).cardinality()
> 1
>
> I think that while the second answer is correct, the first one should 
> return [[2, 3, 3]].
>
> The only problem that I can see is that code seems to not be written to 
> handle input vectors that have 0 entries.  The documentation needs to be 
> modernized a bit.
>
> -Mike
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to