Here is an example of using the Compositions function:
sage: Compositions(10).cardinality()
512
>
> Also I am a little confused about exactly what a poset is and what the
> question is asking me to do. Thanks for your help.
Type "Poset?" in Sage to learn more about how to use posets in Sage.
Also read this article:
http://en.wikipedia.org/wiki/Partially_ordered_set
William
>
>
> right=1
> for k in range (1,11):
> k *= (1/(1 - x^k))
> print k
There is a bug in the loop. You are assigning to k each time (where
it says "k *= "), but should be assigning to right (which you never
use), e.g.,
right *= ...
William
>
> Am I taking the correct approach?
>
> Chad
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org