Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: How to generate restricted partitions of an integer

by thor (Priest)
on Nov 11, 2004 at 17:27 UTC ( #407113=note: print w/replies, xml ) Need Help??


in reply to Re^4: How to generate restricted partitions of an integer
in thread How to generate restricted partitions of an integer

Okay...now I understand the problem. If I dust of my math degree...I think this could be solved with generating functions. Basically, calculate (x+ x**5+ x**10 + x**20 + x**50 + x**100)**100 and find the coeffieient of x**100 in the resulting polynomial. Easy...;)

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

  • Comment on Re^5: How to generate restricted partitions of an integer

Replies are listed 'Best First'.
Re^6: How to generate restricted partitions of an integer
by borisz (Canon) on Nov 11, 2004 at 18:17 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://407113]
help
Chatterbox?
LanX .... almost i play keyboard but the band sucks
[Tanktalus]: Note to self: don't apply to wherever LanX works :)
[LanX]: \o/

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-05-24 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?