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

Re: How to generate restricted partitions of an integer

by tye (Sage)
on Nov 12, 2004 at 09:11 UTC ( #407313=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
            } \@cnt, \@size;
    }
    print "($tries tries)\n";
    
  2. or download this
    > perl change.pl 103 100 33 10 3 | more
    1) 1*10 + 31*3
    ...
    9) 1*100 + 1*3
    (56 tries)
    >
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://407313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2020-10-20 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?