Thank for your assistance..

I have managed to solve the question myself..


Partitions(200, parts_in=[200,100,50,20,10,5,2,1]).cardinality()

*deprecated:* RestrictedPartitions(100,[100,50,20,10,5,2,1]).cardinality()


some other examples:
Partitions(1505, parts_in=[580,420,355,335,275,215]).list()

Partitions(1505, parts_in=[580,420,355,335,275,215]).cardinality()


Found the solution from Sage Documentation.. after heavy cross references.

Can solve these questions for free.. after freely registering.. and using
Sage online

http://alpha.sagenb.org



On 23 November 2010 22:45, Minh Nguyen <nguyenmi...@gmail.com> wrote:

> I'm forwarding the post below to sage-support where it properly belongs.
>
> --
> Regards
> Minh Van Nguyen
>
>
> ---------- Forwarded message ----------
> From: SVCitian <emailsrvr-svcit...@yahoo.com>
> Date: Wed, Nov 24, 2010 at 1:12 AM
> Subject: [sage-edu] frobenius solve... how to do it in Sage
> To: sage-edu <sage-...@googlegroups.com>
>
>
> In mathematica..
> http://reference.wolfram.com/mathematica/ref/FrobeniusSolve.html
>
> one can solve in mathematical easily for questions like this:
>
> ---
> In England the currency is made up of pound, £, and pence, p, and
> there are eight coins in general circulation:
>   1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).
>
> It is possible to make £2 in the following way:
>   1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p
> How many different ways can £2 be made using any number of coins?
> ---
>
> How can I solve this question using Sage... Thanks for your
> assistance..
>
> It is something to do with Integer Partitions or Frobenius Solve.
>
> Please help
>
> thanks.
>

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to