- or download this
DB<288> sub fac {my $x=1; $x*=$_ for 2..$_[0]; $x}
...
DB<290> binom 26,8
=> 1562275
- or download this
a bcd
abcd
aa cd
aab d
aabc
- or download this
DB<292> length "aaaabbbcccddddeeeeffffgggghhhiiijjkkkllllmmmnnnnoooo
+pppqrrrrssssstttuuuuvvwwwxxyyyzzzz"
=> 86
DB<293> binom 86,8
=> "53060358690"
- or download this
"aaaabbbc..." # pattern
"1000100...." # ok => ab...
"1100100...." # ok => aab...
"1001100.... # not ok => aab...
- or download this
use strict;
use warnings;
...
generate(0,"");
print $nsolutions;