Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2011-06-02 06:07:42 -0600

DSM gravatar image
sage: L2a = flatten([[perm]*count for perm, count in zip(Permutations(3), prof)])
sage: L2b = sum(([perm]*count for perm, count in zip(Permutations(3), prof)), [])
sage: L == L2a == L2b
True

functional 4tw!