Help for this page

Select Code to Download


  1. or download this
    use ntheory ":all";
    my %seen;
    ...
        say $s unless $seen{$s}++;
      } scalar(@p);
    } 5,{n=>3};
    
  2. or download this
    3 1 1
    1 3 1
    ...
    2 2 1
    2 1 2
    1 2 2
    
  3. or download this
    $ perl -Mntheory=:all -E 'forcomp { say "@_" } 5,{n=>3}'
    1 1 3
    1 2 2
    ...
    2 1 2
    2 2 1
    3 1 1
    
  4. or download this
    use ntheory ":all";
    forpart {
    ...
            say "@_";
        } [@_];
    } 5,{n=>3};