Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

SSL chap16.html   Interaktion und
PortierbarkeitHTML

 

 products/Sources/formale Sprachen/GAP/doc/ref/chap16.html


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>GAP (ref) - Chapter 16: Combinatorics</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="generator" content="GAPDoc2HTML" />
<link rel="stylesheet" type="text/css" href="manual.css" />
<script src="manual.js" type="text/javascript"></script>
<script type="text/javascript">overwriteStyle();</script>
</head>
<body class="chap16"  onload="jscontent()">


<div class="chlinktop"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chap10.html">10</a>  <a href="chap11.html">11</a>  <a href="chap12.html">12</a>  <a href="chap13.html">13</a>  <a href="chap14.html">14</a>  <a href="chap15.html">15</a>  <a href="chap16.html">16</a>  <a href="chap17.html">17</a>  <a href="chap18.html">18</a>  <a href="chap19.html">19</a>  <a href="chap20.html">20</a>  <a href="chap21.html">21</a>  <a href="chap22.html">22</a>  <a href="chap23.html">23</a>  <a href="chap24.html">24</a>  <a href="chap25.html">25</a>  <a href="chap26.html">26</a>  <a href="chap27.html">27</a>  <a href="chap28.html">28</a>  <a href="chap29.html">29</a>  <a href="chap30.html">30</a>  <a href="chap31.html">31</a>  <a href="chap32.html">32</a>  <a href="chap33.html">33</a>  <a href="chap34.html">34</a>  <a href="chap35.html">35</a>  <a href="chap36.html">36</a>  <a href="chap37.html">37</a>  <a href="chap38.html">38</a>  <a href="chap39.html">39</a>  <a href="chap40.html">40</a>  <a href="chap41.html">41</a>  <a href="chap42.html">42</a>  <a href="chap43.html">43</a>  <a href="chap44.html">44</a>  <a href="chap45.html">45</a>  <a href="chap46.html">46</a>  <a href="chap47.html">47</a>  <a href="chap48.html">48</a>  <a href="chap49.html">49</a>  <a href="chap50.html">50</a>  <a href="chap51.html">51</a>  <a href="chap52.html">52</a>  <a href="chap53.html">53</a>  <a href="chap54.html">54</a>  <a href="chap55.html">55</a>  <a href="chap56.html">56</a>  <a href="chap57.html">57</a>  <a href="chap58.html">58</a>  <a href="chap59.html">59</a>  <a href="chap60.html">60</a>  <a href="chap61.html">61</a>  <a href="chap62.html">62</a>  <a href="chap63.html">63</a>  <a href="chap64.html">64</a>  <a href="chap65.html">65</a>  <a href="chap66.html">66</a>  <a href="chap67.html">67</a>  <a href="chap68.html">68</a>  <a href="chap69.html">69</a>  <a href="chap70.html">70</a>  <a href="chap71.html">71</a>  <a href="chap72.html">72</a>  <a href="chap73.html">73</a>  <a href="chap74.html">74</a>  <a href="chap75.html">75</a>  <a href="chap76.html">76</a>  <a href="chap77.html">77</a>  <a href="chap78.html">78</a>  <a href="chap79.html">79</a>  <a href="chap80.html">80</a>  <a href="chap81.html">81</a>  <a href="chap82.html">82</a>  <a href="chap83.html">83</a>  <a href="chap84.html">84</a>  <a href="chap85.html">85</a>  <a href="chap86.html">86</a>  <a href="chap87.html">87</a>  <a href="chapBib.html">Bib</a>  <a href="chapInd.html">Ind</a>  </div>

<div class="chlinkprevnexttop"> <a href="chap0.html">[Top of Book]</a>   <a href="chap0.html#contents">[Contents]</a>    <a href="chap15.html">[Previous Chapter]</a>    <a href="chap17.html">[Next Chapter]</a>   </div>

<p id="mathjaxlink" class="pcenter"><a href="chap16_mj.html">[MathJax on]</a></p>
<p><a id="X7BDA99EE7CEADA7C" name="X7BDA99EE7CEADA7C"></a></p>
<div class="ChapSects"><a href="chap16.html#X7BDA99EE7CEADA7C">16 <span class="Heading">Combinatorics</span></a>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap16.html#X800E48927D5C83F5">16.1 <span class="Heading">Combinatorial Numbers</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X87665F748594BF29">16.1-1 Factorial</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7A9AF5F58682819D">16.1-2 Binomial</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7DC5667580522BDA">16.1-3 Bell</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X792FF6EA786A5C2B">16.1-4 Bernoulli</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X85037456785BB33C">16.1-5 Stirling1</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7C93E14D7BC360F0">16.1-6 Stirling2</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap16.html#X81B4696585C38147">16.2 <span class="Heading">Combinations, Arrangements and Tuples</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X8770F16D794C0ADB">16.2-1 Combinations</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X78DD5C0D81057540">16.2-2 <span class="Heading">Iterator and enumerator of combinations</span></a>
</span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X82A6E98C85714FD0">16.2-3 NrCombinations</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7837B3357C7566C8">16.2-4 Arrangements</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7DE1ABD47D19F140">16.2-5 NrArrangements</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X81601C6786120DDC">16.2-6 UnorderedTuples</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7959281584C42C52">16.2-7 NrUnorderedTuples</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X86A3CA0F7CC8C320">16.2-8 Tuples</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7BA135297E8DA819">16.2-9 EnumeratorOfTuples</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X86416A31807B0086">16.2-10 IteratorOfTuples</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X85E18A9A87FD4CA2">16.2-11 NrTuples</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7B0143FB83F359B7">16.2-12 PermutationsList</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X8629A2908050EB3A">16.2-13 NrPermutationsList</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X79C159507B2BF1C9">16.2-14 Derangements</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7C1741B181A9AB9C">16.2-15 NrDerangements</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7A13D8DC8204525F">16.2-16 PartitionsSet</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7BCD7FC2876386F1">16.2-17 NrPartitionsSet</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X84A6D15F8107008B">16.2-18 Partitions</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X8793AEBD7E529E1D">16.2-19 IteratorOfPartitions</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7EBD746A8607D0B8">16.2-20 IteratorOfPartitionsSet</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X86933C4F795C4EBD">16.2-21 NrPartitions</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X820DF201871F2723">16.2-22 OrderedPartitions</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X80BB9F4982CA1E8B">16.2-23 NrOrderedPartitions</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X8009520C82942461">16.2-24 PartitionsGreatestLE</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7CB8D4FF8592A9BB">16.2-25 PartitionsGreatestEQ</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7A70D4F3809494E7">16.2-26 RestrictedPartitions</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X800B43838742FBF4">16.2-27 NrRestrictedPartitions</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7F4EDCCA780B469D">16.2-28 SignPartition</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7DB9BEB6856EC03D">16.2-29 AssociatedPartition</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7A95D8A6820363A8">16.2-30 PowerPartition</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X877D997B7F66A119">16.2-31 PartitionTuples</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7F44AD098561DE32">16.2-32 NrPartitionTuples</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X8796C1D783ED9CB4">16.2-33 BetaSet</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap16.html#X83DC50B67D74E674">16.3 <span class="Heading">Fibonacci and Lucas Sequences</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X85AE1D70803A886C">16.3-1 Fibonacci</a></span>
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7830A03181D67192">16.3-2 Lucas</a></span>
</div></div>
<div class="ContSect"><span class="tocline"><span class="nocss"> </span><a href="chap16.html#X821888E77EB43F67">16.4 <span class="Heading">Permanent of a Matrix</span></a>
</span>
<div class="ContSSBlock">
<span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html#X7F0942DD83BBAB7A">16.4-1 Permanent</a></span>
</div></div>
</div>

<h3>16 <span class="Heading">Combinatorics</span></h3>

<p>This chapter describes functions that deal with combinatorics. We mainly concentrate on two areas. One is about <em>selections</em>, that is the ways one can select elements from a set. The other is about <em>partitions</em>, that is the ways one can partition a set into the union of pairwise disjoint subsets.</p>

<p><a id="X800E48927D5C83F5" name="X800E48927D5C83F5"></a></p>

<h4>16.1 <span class="Heading">Combinatorial Numbers</span></h4>

<p><a id="X87665F748594BF29" name="X87665F748594BF29"></a></p>

<h5>16.1-1 Factorial</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; Factorial</code>( <var class="Arg">n</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the <em>factorial</em> <span class="SimpleMath">n!</span> of the positive integer <var class="Arg">n</var>, which is defined as the product <span class="SimpleMath">1 ⋅ 2 ⋅ 3 ⋯ n</span>.</p>

<p><span class="SimpleMath">n!</span> is the number of permutations of a set of <span class="SimpleMath">n</span> elements. <span class="SimpleMath">1 / n!</span> is the coefficient of <span class="SimpleMath">x^n</span> in the formal series <span class="SimpleMath">exp(x)</span>, which is the generating function for factorial.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..10], Factorial );</span>
[ 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">Factorial( 30 );</span>
265252859812191058636308480000000
</pre></div>

<p><code class="func">PermutationsList</code> (<a href="chap16.html#X7B0143FB83F359B7"><span class="RefLink">16.2-12</span></a>) computes the set of all permutations of a list.</p>

<p><a id="X7A9AF5F58682819D" name="X7A9AF5F58682819D"></a></p>

<h5>16.1-2 Binomial</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; Binomial</code>( <var class="Arg">n</var>, <var class="Arg">k</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the <em>binomial coefficient</em> <span class="SimpleMath">{n choose k}</span> of integers <var class="Arg">n</var> and <var class="Arg">k</var>. This is defined by the conditions <span class="SimpleMath">{n choose k} = 0</span> for <span class="SimpleMath">k < 0</span>, <span class="SimpleMath">{0 choose k} = 0</span> for <span class="SimpleMath">k ≠ 0</span>, <span class="SimpleMath">{0 choose 0} = 1</span> and the relation <span class="SimpleMath">{n choose k} = {n-1 choose k} + {n-1 choose k-1}</span> for all <span class="SimpleMath">n</span> and <span class="SimpleMath">k</span>.</p>

<p>There are many ways of describing this function. For example, if <span class="SimpleMath">n ≥ 0</span> and <span class="SimpleMath">0 ≤ k ≤ n</span>, then <span class="SimpleMath">{n choose k} = n! / (k! (n-k)!)</span> and for <span class="SimpleMath">n < 0</span> and <span class="SimpleMath">k ≥ 0</span> we have <span class="SimpleMath">{n choose k} = (-1)^k {-n+k-1 choose k}</span>.</p>

<p>If <span class="SimpleMath">n ≥ 0</span> then <span class="SimpleMath">{n choose k}</span> is the number of subsets with <span class="SimpleMath">k</span> elements of a set with <span class="SimpleMath">n</span> elements. Also, <span class="SimpleMath">{n choose k}</span> is the coefficient of <span class="SimpleMath">x^k</span> in the polynomial <span class="SimpleMath">(x + 1)^n</span>, which is the generating function for <span class="SimpleMath">{n choose .}</span>, hence the name.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput"># Knuth calls this the trademark of Binomial:</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..4], k->Binomial( 4, k ) );</span>
[ 1, 4, 6, 4, 1 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..6], n->List( [0..6], k->Binomial( n, k ) ) );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput"># the lower triangle is called Pascal's triangle:</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">PrintArray( last );</span>
[ [   1,   0,   0,   0,   0,   0,   0 ],
  [   1,   1,   0,   0,   0,   0,   0 ],
  [   1,   2,   1,   0,   0,   0,   0 ],
  [   1,   3,   3,   1,   0,   0,   0 ],
  [   1,   4,   6,   4,   1,   0,   0 ],
  [   1,   5,  10,  10,   5,   1,   0 ],
  [   1,   6,  15,  20,  15,   6,   1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">Binomial( 50, 10 );</span>
10272278170
</pre></div>

<p><code class="func">NrCombinations</code> (<a href="chap16.html#X82A6E98C85714FD0"><span class="RefLink">16.2-3</span></a>) is the generalization of <code class="func">Binomial</code> for multisets. <code class="func">Combinations</code> (<a href="chap16.html#X8770F16D794C0ADB"><span class="RefLink">16.2-1</span></a>) computes the set of all combinations of a multiset.</p>

<p><a id="X7DC5667580522BDA" name="X7DC5667580522BDA"></a></p>

<h5>16.1-3 Bell</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; Bell</code>( <var class="Arg">n</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the <em>Bell number</em> <span class="SimpleMath">B(n)</span>. The Bell numbers are defined by <span class="SimpleMath">B(0) = 1</span> and the recurrence <span class="SimpleMath">B(n+1) = ∑_{k = 0}^n {n choose k} B(k)</span>.</p>

<p><span class="SimpleMath">B(n)</span> is the number of ways to partition a set of <var class="Arg">n</var> elements into pairwise disjoint nonempty subsets (see <code class="func">PartitionsSet</code> (<a href="chap16.html#X7A13D8DC8204525F"><span class="RefLink">16.2-16</span></a>)). This implies of course that <span class="SimpleMath">B(n) = ∑_{k = 0}^n S_2(n,k)</span> (see <code class="func">Stirling2</code> (<a href="chap16.html#X7C93E14D7BC360F0"><span class="RefLink">16.1-6</span></a>)). <span class="SimpleMath">B(n)/n!</span> is the coefficient of <span class="SimpleMath">x^n</span> in the formal series <span class="SimpleMath">exp( exp(x)-1 )</span>, which is the generating function for <span class="SimpleMath">B(n)</span>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..6], n -> Bell( n ) );</span>
[ 1, 1, 2, 5, 15, 52, 203 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">Bell( 14 );</span>
190899322
</pre></div>

<p><a id="X792FF6EA786A5C2B" name="X792FF6EA786A5C2B"></a></p>

<h5>16.1-4 Bernoulli</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; Bernoulli</code>( <var class="Arg">n</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the <var class="Arg">n</var>-th <em>Bernoulli number</em> <span class="SimpleMath">B_n</span>, which is defined by <span class="SimpleMath">B_0 = 1</span> and <span class="SimpleMath">B_n = -∑_{k = 0}^{n-1} {n+1 choose k} B_k/(n+1)</span>.</p>

<p><span class="SimpleMath">B_n / n!</span> is the coefficient of <span class="SimpleMath">x^n</span> in the power series of <span class="SimpleMath">x / (exp(x)-1)</span>. Except for <span class="SimpleMath">B_1 = -1/2</span> the Bernoulli numbers for odd indices are zero.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">Bernoulli( 4 );</span>
-1/30
<span class="GAPprompt">gap></span> <span class="GAPinput">Bernoulli( 10 );</span>
5/66
<span class="GAPprompt">gap></span> <span class="GAPinput">Bernoulli( 12 );  # there is no simple pattern in Bernoulli numbers</span>
-691/2730
<span class="GAPprompt">gap></span> <span class="GAPinput">Bernoulli( 50 );  # and they grow fairly fast</span>
495057205241079648212477525/66
</pre></div>

<p><a id="X85037456785BB33C" name="X85037456785BB33C"></a></p>

<h5>16.1-5 Stirling1</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; Stirling1</code>( <var class="Arg">n</var>, <var class="Arg">k</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the <em>Stirling number of the first kind</em> <span class="SimpleMath">S_1(n,k)</span> of the integers <var class="Arg">n</var> and <var class="Arg">k</var>. Stirling numbers of the first kind are defined by <span class="SimpleMath">S_1(0,0) = 1</span>, <span class="SimpleMath">S_1(n,0) = S_1(0,k) = 0</span> if <span class="SimpleMath">n, k ne 0</span> and the recurrence <span class="SimpleMath">S_1(n,k) = (n-1) S_1(n-1,k) + S_1(n-1,k-1)</span>.</p>

<p><span class="SimpleMath">S_1(n,k)</span> is the number of permutations of <var class="Arg">n</var> points with <var class="Arg">k</var> cycles. Stirling numbers of the first kind appear as coefficients in the series <span class="SimpleMath">n! {x choose n} = ∑_{k = 0}^n S_1(n,k) x^k</span> which is the generating function for Stirling numbers of the first kind. Note the similarity to <span class="SimpleMath">x^n = ∑_{k = 0}^n S_2(n,k) k! {x choose k}</span> (see <code class="func">Stirling2</code> (<a href="chap16.html#X7C93E14D7BC360F0"><span class="RefLink">16.1-6</span></a>)). Also the definition of <span class="SimpleMath">S_1</span> implies <span class="SimpleMath">S_1(n,k) = S_2(-k,-n)</span> if <span class="SimpleMath">n, k < 0</span>. There are many formulae relating Stirling numbers of the first kind to Stirling numbers of the second kind, Bell numbers, and Binomial coefficients.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput"># Knuth calls this the trademark of S_1:</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..4], k -> Stirling1( 4, k ) );</span>
[ 0, 6, 11, 6, 1 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..6], n->List( [0..6], k->Stirling1( n, k ) ) );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput"># note the similarity with Pascal's triangle for Binomial numbers</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">PrintArray( last );</span>
[ [    1,    0,    0,    0,    0,    0,    0 ],
  [    0,    1,    0,    0,    0,    0,    0 ],
  [    0,    1,    1,    0,    0,    0,    0 ],
  [    0,    2,    3,    1,    0,    0,    0 ],
  [    0,    6,   11,    6,    1,    0,    0 ],
  [    0,   24,   50,   35,   10,    1,    0 ],
  [    0,  120,  274,  225,   85,   15,    1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">Stirling1(50,10);</span>
101623020926367490059043797119309944043405505380503665627365376
</pre></div>

<p><a id="X7C93E14D7BC360F0" name="X7C93E14D7BC360F0"></a></p>

<h5>16.1-6 Stirling2</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; Stirling2</code>( <var class="Arg">n</var>, <var class="Arg">k</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the <em>Stirling number of the second kind</em> <span class="SimpleMath">S_2(n,k)</span> of the integers <var class="Arg">n</var> and <var class="Arg">k</var>. Stirling numbers of the second kind are defined by <span class="SimpleMath">S_2(0,0) = 1</span>, <span class="SimpleMath">S_2(n,0) = S_2(0,k) = 0</span> if <span class="SimpleMath">n, k ne 0</span> and the recurrence <span class="SimpleMath">S_2(n,k) = k S_2(n-1,k) + S_2(n-1,k-1)</span>.</p>

<p><span class="SimpleMath">S_2(n,k)</span> is the number of ways to partition a set of <var class="Arg">n</var> elements into <var class="Arg">k</var> pairwise disjoint nonempty subsets (see <code class="func">PartitionsSet</code> (<a href="chap16.html#X7A13D8DC8204525F"><span class="RefLink">16.2-16</span></a>)). Stirling numbers of the second kind appear as coefficients in the expansion of <span class="SimpleMath">x^n = ∑_{k = 0}^n S_2(n,k) k! {x choose k}</span>. Note the similarity to <span class="SimpleMath">n! {x choose n} = ∑_{k = 0}^n S_1(n,k) x^k</span> (see <code class="func">Stirling1</code> (<a href="chap16.html#X85037456785BB33C"><span class="RefLink">16.1-5</span></a>)). Also the definition of <span class="SimpleMath">S_2</span> implies <span class="SimpleMath">S_2(n,k) = S_1(-k,-n)</span> if <span class="SimpleMath">n, k < 0</span>. There are many formulae relating Stirling numbers of the second kind to Stirling numbers of the first kind, Bell numbers, and Binomial coefficients.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput"># Knuth calls this the trademark of S_2:</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..4], k->Stirling2( 4, k ) );</span>
[ 0, 1, 7, 6, 1 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..6], n->List( [0..6], k->Stirling2( n, k ) ) );;</span>
<span class="GAPprompt">gap></span> <span class="GAPinput"># note the similarity with Pascal's triangle for Binomial numbers</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">PrintArray( last );</span>
[ [   1,   0,   0,   0,   0,   0,   0 ],
  [   0,   1,   0,   0,   0,   0,   0 ],
  [   0,   1,   1,   0,   0,   0,   0 ],
  [   0,   1,   3,   1,   0,   0,   0 ],
  [   0,   1,   7,   6,   1,   0,   0 ],
  [   0,   1,  15,  25,  10,   1,   0 ],
  [   0,   1,  31,  90,  65,  15,   1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">Stirling2( 50, 10 );</span>
26154716515862881292012777396577993781727011
</pre></div>

<p><a id="X81B4696585C38147" name="X81B4696585C38147"></a></p>

<h4>16.2 <span class="Heading">Combinations, Arrangements and Tuples</span></h4>

<p><a id="X8770F16D794C0ADB" name="X8770F16D794C0ADB"></a></p>

<h5>16.2-1 Combinations</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; Combinations</code>( <var class="Arg">mset</var>[, <var class="Arg">k</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the set of all combinations of the multiset <var class="Arg">mset</var> (a list of objects <

<p>A <em>combination</em> of <var class="Arg">mset</var> is an unordered selection without repetitions and is represented by a sorted sublist of <var class="Arg">mset</var>. If <var class="Arg">mset</var> is a proper set, there are <span class="SimpleMath">{|<var class="Arg">mset</var>| choose <var class="Arg">k</var>}</span> (see <code class="func">Binomial</code> (<a href="chap16.html#X7A9AF5F58682819D"><span class="java.lang.StringIndexOutOfBoundsException: Index 424 out of bounds for length 0

<p>To loop over combinations of a larger multiset use <code class="func">span class="ContSS"><br /><span class="nocss">  </span><a href="chap16.html1- /a>/>

<p><a id="X78DD5C0D81057540" name="X78DD5C0D81057540"></a></p>

<h5>16.2-2 <span class="Heading">Iterator and enumerator of combinations</span></h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IteratorOfCombinations</code>( <var class="Arg">mset</var>[, <var class="Arg">k</var>] )</td><td class="tdrightspanclass""<br /<class=nocss">&;&;<span>a "hap16#X7C93E14D7BC360F0"16.-6Stirling2/a>/pan>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; EnumeratorOfCombinationsspan
<">Iterator</code> (<#> "efLink"30.-1</span></> for combinations see code "unc></code> < hrefhref="hap16.X8770F16D794C0ADB"< class=R"1621/</a)) the  multiset <class=Arg></>.  non-negative integer <var class="Arg">k</var> is given as second argument then only the combinations with <var class="Arg">k</var> entries are produced, otherwise all combinations.</p>

<p><code class="func">EnumeratorOfCombinations</code> returns an <code class="func">Enumerator</code> (<a href="chap30.html#X7EF8910F82B45EC7"><span class="RefLink">30.3-2</span></a>) of the given multiset <var class="Arg">mset</var>. Currently only a variant without second argument <var class="Arg">k</var> is implementedspan =">br /< =nocss>&;nbsp;<span< =chap16.html#X78DD5C0D81057540"1622<span ="" and   java.lang.StringIndexOutOfBoundsException: Range [176, 174) out of bounds for length 185

<>Theordering fromthese functionscanbe   alsofrom listreturned  class""/java.lang.StringIndexOutOfBoundsException: Range [153, 152) out of bounds for length 240


< class">>
<span class="GAPprompt">gap>< =>< >span=nocss&;/>< =.#java.lang.StringIndexOutOfBoundsException: Range [105, 104) out of bounds for length 141
<span class="GAPprompt">gap></span> <span class="GAPinput">NrCombinations(m);</span>
49152
<java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 143
<span class="GAPprompt">gap></span> <span class="GAPinput">i;</span>
49152
<span class="GAPprompt">gap>/span>< class=""> : (m;;<span>
<span class="GAPprompt">gap></span> <span class="GAPinput">cm[1000];</span>
[ 1, 2, 3, 6, 7, 8, 9, <pan class=ContSS">br/<span class="nocss">  /span<a href"hap16.
<span class="GAPprompt">gap></span> <span class="GAPinput">Position(cm, [1,13,15,15]);</span>
36866
</pre></div>

<p><a id="X82A6E98C85714FD0" name="X82A6E98C85714FD0">spanjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 135

<>163 h5

<=""><class""width"%">tdjava.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 252
<p>returns the number of <code class="code">Combinations(<var class="Arg">mset</var>,<var class="Arg">k</var>)</code>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">Combinations( [1,2,2,3<pan java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 142
[ [  ], [ 1 ], ["ontSS< /<class"nocss>&</java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 144
  [ 1, 3 ], [ 2 ], [ 2, 2 ], [ 2, < java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 145
<span class="GAPprompt">gap></span> <span class="GAPinput">class=ContSS><br < class=">&".>2-25 java.lang.StringIndexOutOfBoundsException: Range [136, 134) out of bounds for length 145
<span class="GAPprompt">gap></span> <span class="GAPinput">NrCombinations( [1..52], 5 );</span>
2598960
</pre></div>

<pThe function codeclass=func"Arrangements</code> (<a href="chap16.html#X7837B3357C7566C8"><span class="RefLink">16.2-4</span></a>) computes ordered selections without repetitions, <span ">br><>nbsp&<span< java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 144

<>a =X7837B3357C7566C8 =>/>/>

<h5>16.2-4  class="ContSS<br />spanclass""&&</span>a href=".X8796C1D783ED9CB4>162-33 BetaSet<a<span>

<divjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 250
< returns all arrangements of <var class=Arg>/./>

<p>An <em>arrangement</em> of <var class="Arg">mset</var> is an ordered selection without repetitions and is represented by a list that contains only elements from <var class="Arg">mset</var>, but maybe in a different order. If <var class="Arg"span =ContSS><br /spanclass"">nbsp;nbsp</a".#8516-Fjava.lang.StringIndexOutOfBoundsException: Range [123, 122) out of bounds for length 133

<>< "java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 62

<h5>16.2-5 NrArrangements</h5>

<div class="func"><table class="func" width=""pan class="ContSS"</href"html#>6.41  </a></span>
<> the <">java.lang.StringIndexOutOfBoundsException: Range [84, 83) out of bounds for length 122

<>As  of   ofgame Suppose havethesixof  <class="><code> and you have to afour .Then  given<pjava.lang.StringIndexOutOfBoundsException: Index 239 out of bounds for length 239


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput
[ [ "e", "e"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  [e,e,s t ] [ e,e,t,""],[ "" "" "t" s ,
  ... 93 more possibilities ...
  [ "t", "t", "l"
</pre></div>

<p>Can you find the five proper English words, where <code class="code">"lets"</code> does not count? Note that the fact


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">NrArrangements( ["s","e","t","t","l","e"] );</span>
523
</pre></div>

<p>The function <code class="func">Combinations</code> (<a href="chap16.html#span class="GAPprompt">gap></span> <span class="GAPinput">Factorial( 30 );</span

<p><a id="X81601C6786120DDC" name="X81601C6786120DDC"></a></p>

<h5>16.2-6 <5>

<div class="funcpthe em> /><=">n  k</ <varclass"Arg"n</ar  varclass=A"k<var. This  definedby  ""{  }= 0</span>for span =SimpleMath" 0span,spanclass"java.lang.StringIndexOutOfBoundsException: Range [310, 309) out of bounds for length 609
<p>returns the set of all unordered tuples of length <var class="Arg">k</var> of the set <var class="Arg">set</var>.</p>

<p>An <em>unordered tuple</em> of length <var class="Arg">k</var> of <var class="Arg">set</var> is an unordered selection with repetitions of <var class="Arg">set</var> and is represented by a sorted list of length <var class="Arg">k</var> containing elements from <var class="Arg">set</var>. There are <span class="SimpleMath">{|set| + k - 1 choose k}</span> (see <code class="func">Binomial</code>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p>Note that the fact that <code class="func">UnorderedTuples</code> returns a set implies that the last index runs fastest. That means the first tuple contains the smallest element from <var class=

<p><a id="X7959281584C42C52" name="X7959281584C42C52"></a></p>

<h5>16.2-7 NrUnorderedTuples</h5>

< class=func"><table class=func"width"%"><tr>tdclass="">code=""&8227;;NrUnorderedTuples</ode> < class"Arg"set<var> var =A"k/ar>)/td><class""(n;function <td></><div>
<UnorderedTuples<var =Args</ar,var class=>/var)<p>

<As an java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 214


<div class="example"><pre>
< "">ap&</pan span=GAPinput>( [.] )<span>
252
<   1,0    0   0,0,0 ,
[ [ 1, 1, 1, 1, 1 ], [ 1, 1, 1, 1, 2 ], [ 1, 1, 1, 1, 3 [  ,  ,   0,   0,0   ,0 ]
[1,,1 1  ][,1,1 ,6 ,[,1, 1,,2]  1 1 ,2  ]
  ... 100 more tuples ...
  [ 1, 3,   ,5  10,10   5   ,   0]
  ... 100 more tuples ...
  [ 3, 3, 5, 5, 5 ], [ 3, 3, 5< =""gap&/pan> spanclass"GAPinput"Binomial 50, 10 ;/pan>
   32  tuples ..
  [ 5, 5, 5, 6, 6 ], [ 5, 5, 6, 6, 6 ], [ 5, 6, 6, 6, 6 ], [ 6, 6, 6, 6, 6
</pre></div>

<p>The function <code class="func">Combinations</code> (<a href="chap16.html#X8770F16D794C0ADB"><span class="RefLink">16.2-1</span></a>) computes unordered selections without repetitions, <code class="func">Arrangements</code> (<a href="chap16.html#X7837B3357C7566C8"><span class="RefLink">16.2-4<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p><a id="X86A3CA0F7CC8C320" name="X86A3CA0F7CC8C320"></a></p>

<h5>16.2-8 Tuples</h5>

<div class="func"><table class="func" width="100%"><<>   ""B</>.     by <span ">B0) = 1</span>  recurrence<span class="impleMath"B(+1 =∑k  0^ {choose } (k)<span>./p>
<p>returns the set of all ordered tuples of length <var class="Arg">k</var> of the set <var class="Arg">set</var>.</p>

<p>An <em>ordered tuple</em> of length <var class="Arg">k</var> of <var class="Arg">set</var> is an ordered selection 

<p>Note that the fact that <[1 1 25 15 52,  java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

<p><a idjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<>.- </5java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34

<div class="func"><table class="func" width="100%p> the var class=Arg"><var- emBernoulli /> span =SimpleMath><span> which is  <class=SimpleMath>  1/java.lang.StringIndexOutOfBoundsException: Range [165, 164) out of bounds for length 254
<p>This function is referred to as an example of enumerators that are defined by functions but are not constructed from 

<p><a id="X86416A31807B0086" name="X86416A31807B0086"></a></p>

<h5>16.2-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

< =>table "func"width="%">tr>tdclass""codeclass=f">‣ IteratorOfTuples</code> < class=Arg">set<var,< class=Arg>/> )td>< java.lang.StringIndexOutOfBoundsException: Range [195, 194) out of bounds for length 251
<p>For a set <var class="Arg">set</var> and a positive integer <var class="Arg">k</var>, <code class="func">IteratorOfTuples</code>/30

<p><a id="X85E18A9A87FD4CA2" name="span class="GAPprompt">gap></span> <span"APinput"Bernoulli 12)  #there is no simple in Bernoullinumbers</>

<h5>16.2-11 NrTuples</h5>

<div class="func"><table class="
<lass="Arg">set</var,var =""k/var>)code./p>


<div class="example"><pre>
<span class="GAPprompt">gap>
[ [ 1, 1 ], [ 1, 2 ], [ 1, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  [,1],[3 2]  3 3 ]]
<span class="GAPprompt">gap></span> <span class="GAPinput">NrTuples( [1
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
<>

>codeTuples class=Arg><var<var=Arg"><var><code> can also be asthe<var ="><var-  

<p>The function <code class="func">Combinations</code> (<a href="chap16.html#X8770F16D794C0ADB"><span class="RefLink">16.2-1</span></a>) computes unordered selections without repetitions, <code class="func">Arrangements</code> (<a href="chap16.html#X7837B3357C7566C8"><span class="RefLink">16.2-4</span></a>) computes ordered selections without repetitions, and finally the function <code class="func">UnorderedTuples</code> (<a href="chap16.html#X81601C6786120DDC"><span class="RefLink">16.2-6</span></a>) computes unordered selections with repetitions.</p>

<p><a id="X7B0143FB83F359B7" name="X7B0143FB83F359B7"></a></p>

<h5>16.2-12 PermutationsList</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PermutationsList</code>( <var class="Arg">mset</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="func">PermutationsList</code> returns the set of permutations of the multiset <var class="Arg">mset</var>.</p>

<p>A <em>permutation</em> is represented by a list that contains exactly the same elements  <var class="rg"><var>but in  java.lang.StringIndexOutOfBoundsException: Range [159, 158) out of bounds for length 750

<p><a id="X8629A2908050EB3A" name="X8629A2908050EB3A"></a></p>

<h5>16.2-13 NrPermutationsList</h5>

class<""width100%> "#; <code>(< =Arg"mset/var<td<td =tdright"( unction&;</></r><table>/java.lang.StringIndexOutOfBoundsException: Index 228 out of bounds for length 228
<p>returns the java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0


<>
<span
[ [ 1, 2, 3 ], [ 1, 3, 2 ], [ 2, 1, 3 ], [ 2, 3, 1 ], [ 3, 1class""k/)/  as =A>/>fold  varArgset/>seecodeclassfunc>/code> (ahref"html#"spanclass="RefLink>21.0-5/<a>))<p>
  [ 3, 2, 1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">PermutationsList( [1,1,2,2] );</span>
[ [ 1, 1, 2, 2 ], [ 1, 2, 1, 2 ], [ 1, 2, 2, 1 ], [ 2, 1, 1, 2 ],
  [ 2, 1, 2, 1 ], [ 2, 2, 1, 1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">NrPermutationsList( [1,2,2,3,3,3,4,4,4,4] );</java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
12600
</pre></div>

<p>The function <code class="func">Arrangements</code> (<a href="chap16.html#X7837B3357C7566C8"><span class="RefLink">16.2-4</span></a>) is the generalization of <code

<><aid=X79C159507B2BF1C9" name"C159507B2BF1C9"</a></>

<h5>16.2-14 Derangements</h5>

<div class="funcjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<java.lang.StringIndexOutOfBoundsException: Range [10, 2) out of bounds for length 83

<p> thenumber of <code class="code">Derangements(<var class="Arg">list</var>)</code>.</p>

<p>Note that the ratio <code class="code">NrPermutationsList( [ 1 .. n ] ) / NrDerangements( [ 1 .. n ] )</code>, which is <span class="SimpleMath">n! / (n! (1/2! - 1/3! + 1/4! - ⋯ + (-1)^n / n!))</span> is an approximation for the base of the natural logarithm <span class="SimpleMath">e = 2.7182818285...</span>, which is correct to about <span class="SimpleMath">n</span> digits.</p>

<p><a id="X7C1741B181A9AB9C" name="X7C1741B181A9AB9C"></a></p

<h5>16.2-15 NrDerangements</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; NrDerangements</code>( <var class="Arg">list</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the number <pan class="APprompt"gapgt</span> <span class="GAPinput">Derangements( [1,2,3,4] );</span>

<p>As an example of derangements suppose that you have to send four different letters to four different people. java.lang.StringIndexOutOfBoundsException: Index 115 out of bounds for length 65


<div class="example"><pre>
<[3 4, 1, 2],[3,4, , 1 ] [4,1, 2,,3 ]  4 3,1, 2 ]java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
[ [ 2, 1, 4, 3 ], [ 2, 3, 4, 1 ], [ 2, 4, 1, 3 ], [ 3, 1, 4, 2 ],
  [ 3, 4, 1, 2 ], [ 3, 4, 2, 1 ], [ 4, 1, 2, 3 ], [ 4, 3, , 2 ],
  [ 4, 3, 2, 1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">NrDerangements( [1..10] );</span>
1334961
<span class="GAPprompt">gap></span> <span class="GAPinput">Int( 10^7*NrPermutationsList([1..10])/last );</span>
<pan class">>/span> <span class="GAPinput">Derangements( [1,1,2,2,3,3] );</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">Derangements( [1,1[ [2 2 3,3,1,1 ], [2, 3 1, 3, 1,2 ], [ 2, 3, 1, , 2, 1],
, 3,,3, 2 1 ]
  [ 2, 3, 3, 1, 1, 2 ], [ 2, 3, 3, 1, 2, 1 ], [ 3, 2, 1, 3, 1, 2 ],
  [ 3, 2, 1, 3, 2, 1 ], [ 3, 2, 3, 1, 1, 2 ], [ 3, 2, 3, 1, 2, 1 ],
  [ 3, 3, 1, 1, 2, 2 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">NrDerangements( [1,2,2,3,3,3,4,4,4,4] );</span>
338
</pre></div>

<p>The function <code class="java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

<p<a id"713D8DC8204525F" name"7A13D8DC8204525F"></a></p>

<h5>16.2-16 PartitionsSet</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="
<p>returns the set of all unordered partitions of the set <var class="Arg">set</var> into <var class="Arg">k</var> pairwise disjoint nonempty sets. If <

<p>An <em>java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0

<p><a id="X7BCD7FC2876386F1" name="X7BCD7FC2876386F1"></a></p>

<h5>16.2-17 NrPartitionsSet</h5>

<" ="%>tr<<java.lang.StringIndexOutOfBoundsException: Range [80, 79) out of bounds for length 252
<p>returns the number of <code class="code">PartitionsSet(<var class="Arg">set</var>,<var java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 0


<div class="java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
< java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 94
[ [ [ 1 ], [ 2 ], [ 3 ] ], [ [ 1 ], [ 2, 3 ] ], [ [ 1, 2 ], [ 3 ] ],
  [ [ 1, 2, 3 ] ], [ [ 1, 3 ], [ 2 ] ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">PartitionsSet( [1,2,3,4], 2 );</span>
[ [ [ 1 ], [ 2, 3, 4 ] ], [ [ 1, 2 ], [ 3, 4 ] ],
  [ [ 1, 2, 3 ], [ 4 ] ], [ [ 1, 2, 4 ], [ 3 ] ],
  [[1,3 ]  2,4 ]] [ 1,3 4 , 2 ,
  [ [ 1, 4 ], [ 2,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<span class="GAPprompt">gap></span> <span class<divclass=>>
203
<span class="GAPprompt">[ [ [ 1 ], [ 2 ], [ 3 ] ],    ] [[1  ,[3 ]]java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
9330
</pre></div<span class"GAPprompt"gap></span> <span class="GAPinput">PartitionsSet( [1,2,3,4], 2 );</span>

<p>Note that <code class="func">PartitionsSet</code> (<a href="chap16.html#X7A13D8DC8204525F"><span class="RefLink">16.2-16</span></a>) does currently not support multisets and[ ,2 3, 4  ] [ 1 2,4 ,[3]],

<p><a id="X84A6D15F8107008B" name="X84A6D15F8107008B"></a></p>

<h5>16.2-18 Partitions</h5>

< ""<java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 245
<>returns   ()ofthe   java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 290

<p>An <em>unordered partition</em> is an unordered sum <span class="SimpleMath">n = p_1 + p_2 + ⋯ + p_k</span> of positive integers and is represented by the list <span class="SimpleMath">p = [ p_1, p_2, ..., p_k ]</span>, in nonincreasing order, i.e., <span class="SimpleMath">p_1 ≥ p_2 ≥ ... ≥ p_k</span>. We write <span class="SimpleMath">p ⊢ n</span>. There are approximately <span class="SimpleMath">exp(π sqrt{2/3 n}) / (4 sqrt{3} n)</span> such partitions, use <code class="func">NrPartitions</code> (<a href="chap16.html#X86933C4F795C4EBD"><span class="RefLink">16.2-21</span></a>) to compute the precise number.</p>

<    loop java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 247

<p>It is possible to associate with every partition of the integer <var class="Arg">n</var> a conjugacy class of permutations in the symmetric group on <var class="Arg">n<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p>Ramanujan found the identities <span class="SimpleMath">p(5i+4) = 0</span> mod 5, <span class="SimpleMath">p(7i+5) = 0</span> mod 7 and <span class="SimpleMath">p(11i+6) = 0</span> mod 11 and many other fascinating things about the number of partitions.</p>

<p><a id="X8793AEBD7E529E1D" name="X8793AEBD7E529E1D"></a></p>

<h5>16.2-19 IteratorOfPartitions</h5>

<
<>For  positive java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 466

<p><a id="X7EBD746A8607D0B8" name="X7EBD746A8607D0B8"></a></p>

<h5>16.2-20 IteratorOfPartitionsSet</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; IteratorOfPartitionsSet</code>( <var class=
<p><code class="func">div class="func"><table class"width"%"tr<class="">code class""&8227; </code>( <var class="Argn/ )</> class=tdright">(nbsp;&bsp;)<td>/><table/>

<p><a id="X86933C4F795C4EBD" name="X86933C4F795C4EBD"></a></p>

<h5>16.2-21 NrPartitions</h5>

<div class="func"><table class="func" width="100a =X7EBD746A8607D0B8"name"X7EBD746A8607D0B8><p
<p


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">Partitions( 7 );</span>
[ [ 1, 1, 1, 1, 1, 1, 1 ], [ 2, 1, 1, 1, 1, 1 ], [ 2, 2, 1, 1, 1 ],
  [ 2, 2, 2, 1 ], [ 3, 1, 1, 1, 1 ], [ 3, 2, 1, 1 ], [ 3, 2, 2 ],
  [ 3, 3, 1 ], [ 4, 1, 1, 1 ], [ 4, 2, 1 ], [ 4, 3 ], [ 5, 1, 1 ],
  [ 5, 2 ], [ 6, 1 ], [ 7 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">Partitions( 8, 3 );</span>
[ [ 3, 3, 2 ], [ 4, 2, 2 ], [ 4, 3, 1 ], [ 5, 2, 1 ], [ 6, 1, 1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">NrPartitions( 7 );</span>
15
<span class="GAPprompt">gap></span> <span class="GAPinput">NrPartitions( 100 );</span>
190569292
</pre></div>

<p>The function <code class="func">OrderedPartitions</code> (<a href="chap16.html#X820DF201871F2723"><span class="RefLink">16.2-22</span></a>) is the ordered counterpart of <code class="func">Partitions</code> (<a href="chap16.html#X84A6D15F8107008B"><span class="RefLink">16.2-18</span></a>).</p>

<p><a id="X820DF201871F2723" name="X820DF201871F2723"></a></p>

<h5>16.2-22 OrderedPartitions</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; OrderedPartitions</code>( <var class="Arg">n</var>[, <var class="Arg">k</var>] )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the set of all span class="GAPprompt">gap></span class="GAPinput">SignPartition([6,5,4,3,2,1]);</span>

<p>An <em>ordered partition</em> is an ordered sum <span class="SimpleMath">n = p_1 + p_2 + ... + p_k</span> of positive integers and is represented by the list <span class="SimpleMath">[ p_1, p_2, ..., p_k ]</span>. There are totally <span class="SimpleMath">2^{n-1}</span> ordered partitions and <span class="SimpleMath">{n-1 choose k-1}</span> (see <code class="java.lang.StringIndexOutOfBoundsException: Index 369 out of bounds for length 2

<> with an <var=Arg><varmuch than <span class="SimpleMath">5/span> the list  simply become  large</p>

<p><a id="X80BB9F4982CA1E8B" name="X80BB9F4982CA1E8B"></a></p>

<h5>162- NrOrderedPartitions</h5>

<div class="
<p>returns the number of <code class="code">OrderedPartitions(<var class="Arg">set</var>,<var class="Arg">k</var>)</code>.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">OrderedPartitions( 5 );</span>
[ [ 1, 1, 1, 1, 1 ], [ 1, 1, 1, 2 ], [ 1, 1, 2, 1 ], [ 1, 1, 3 ],
  [ 1, 2, 1, 1 ], [ 1, 2, 2 ], [ 1, 3, 1 ], [ 1, 4 ], [ 2, 1, 1, 1 ],
  [ 2, 1, 2 ], [ 2, 2, 1 ], [ 2, 3 ], [ 3, 1, 1 ], [ 3, 2 ],
  [ 4, 1 ], [ 5 ] ]
<span class
[ [ 1, 1, 4 ], [ 1, 2, i5>162- PowerPartition</h5
  [ 2, 2, 2 ], [ 2, 3, 1 ], [ 3, 1, 2 ], [ 3, 2, 1 ], [ 4, 1, 1 ] ]
<span class="GAPprompt">gap></span> <span class="GAPinput">NrOrderedPartitions(20);</span>
524288
</pre></div>

<>The function <code class="func">Partitions</code> (<a href="chap16.html#X84A6D15F8107008B"><span class="RefLink">16.2-18</span></a>) is the unordered counterpart of <span class="SimpleMath">l/d</span>. So if <var class="Arg">pi</var> is a partition of <span class="SimpleMath">n</span> then <span class="SimpleMath"><var class="Arg">pi</var>^<var class="Arg">k</var></span> also is a partition of <span class="SimpleMath">n</span>. <code class="func">PowerPartition</code> describes the power map of symmetric groups.</p>

<p><a id="X8009520C82942461" name="X8009520C82942461"></a></p>

<516.2-24PartitionsGreatestLE</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PartitionsGreatestLE</code>( <var class="Arg">n</var>, <var class="Arg">m</var> )</td><td class="tdright">( function )</td></<><a id="877D997B7F66A119" name="X877D997B7F66A119"></a></p>
<p>returns the set of all (unordered) partitions of the integer <var class="Arg">n</var> having parts less or equal to the integer <var class="Arg">m</var>.</p>

<p><a id="X7CB8D4FF8592A9BB" name="X7CB8D4FF8592A9BB"></a></p>

<h5>16.2-25 PartitionsGreatestEQ</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PartitionsGreatestEQ</code>( <var class="Arg">n</var>, <var class="Arg">m</var> )</td><td class="tdright">( function )</td></tr></table></div>pcode =func>PartitionTuples</ode>returns thelist  all varclassArg"</ar>tuples of partitions which together form a partition of <var class="Arg">n</var>.</p>
<>eturns  setof all unordered partitions of the integer <var class="Arg">n</var> having greatest part equal to the integer <var class="Arg">m</var>.</p>

<p><a id="X7A70D4F3809494E7" name="X7A70D4F3809494E7"></a></p>

<h5>16.2-26 RestrictedPartitions</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227<
<p<><a ="X7F44AD098561DE32" name="X7F44AD098561DE32"></a></p>

<p>A <em>restricted partition</em> is like an ordinary partition (see <code class="func">Partitions</code> (<a href="chap16.html#X84A6D15F8107008B"><span class="RefLink">16.2-18</span></a>)) an unordered sum <span class="SimpleMath">n = p_1 + p_2 + .<5>162 />

<p><a id="X800B43838742FBF4" name="X800B43838742FBF4"></a></p>

<h5>16.2-27 NrRestrictedPartitions</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227Arg">r<var> )</code>.</p>
<p>


<div<panclass="GAPprompt"gap>/span span class="GAPinput">PartitionTuples(3, 2);</span>
<span class="GAPprompt">gap></span> <[ [ [ 1, 1, 1 ], [  ] ], [ [ 1, 1 ], [ 1 ] ] 1  , [ 1, 1],
[   [  ],[ 1 , 1]],[  , 1 ]]   1] [2]]java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  [[2 ] [1  ,[ [ ], [2, 1]] [[ 3 ], [ ]],
<span class="GAPprompt">gap></span> <span class="GAPinput">NrRestrictedPartitions(50,[1,2,5,10,20,50]);</span>
451
</pre></div>

<p>The last example tells us that there are 451 ways to return 50 pence change using 1, 2, 5,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p<a id"X7F4EDCCA780B469D"name"X7F4EDCCA780B469D">/a<p

<>16.2-8 SignPartition<h5>

<div class="
<>returns the sign of a permutation with cycle structure <var class="Arg">pi</var>.</p>

<p>This span class="GAPprompt&;/span spanclass="APinput">BetaSet([4, ,1 ] ;<span


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">SignPartition([6,5,4,3,2,1]);</span>
-
</pre></div>

<p><]

<h5>16.2-29 AssociatedPartition</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; AssociatedPartition</code>( <var class="Arg">pi</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="func">AssociatedPartition</code> returns java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0


<div class="example"><pre>
<AssociatedPartition([421];/span>
[ 3, 2, 1, 1 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">AssociatedPartition([6]);</span>
[ 1, 1, 1, 1, 1, 1 ]
</pre></div>

<><aid"X7A95D8A6820363A8" name="X7A95D8A6820363A8"></a></p>

<h5>16.2-30 PowerPartition</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PowerPartition</code>( <var class="Arg">pi</var>, <var class="Arg">k</var> )</td><td class="tdright">( function )</td></tr></table></java.lang.StringIndexOutOfBoundsException: Index 246 out of bounds for length 0
<p><code class="func"java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7

<p>Each part <span class="SimpleMath">l</span> of <var /><div


<div class="example">java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<span class="GAPprompt">gap></span> <span class="GAPinput">PowerPartition([java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
[5 4, 22 2 1 ,1,]
</pre></div>

< java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 62

<>231 java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 32

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; PartitionTuples</code>( <var class="Arg">n</var>, <var class="Arg">r</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p><code class="func">PartitionTuples</code> returns the list of all <var class="Arg">r</var>-tuples of partitions which together form a partition of <var class="Arg">n</var>.</p>

<p><var class="Arg">r</var>-tuples of partitionsk<)/code seecode func"Fibonacci</>(a href=java.lang.StringIndexOutOfBoundsException: Range [123, 122) out of bounds for length 413

<p><a id="X7F44AD098561DE32" name="X7F44AD098561DE32"></a></p>

<h5>16.2-32 NrPartitionTuples</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; NrPartitionTuples</code>( <var class="Arg">n</var>, <var class="Arg">r</var> )</td><td class="tdright">( function )</td></tr></table></div>
<p>returns the number of <code class="code">PartitionTuples( <var span class="GAPprompt">gap></span> <span class="GAPinput">List( [0< class>([.10, &; 1-,)[1]);#^ - (-1^/</>


<div =e"<pre
<span class="GAPprompt">gap></span> <span class="GAPinput">span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..10], i -> Lucas(1,-2,i)[2] );     # 2^k + (-1)^k</span>
[ [ [ 1, 1, 1 ], [  ] ], [ [ 1, 1 ], [ 1 ] ], [ [ 1 ], [ 1, 1 ] ],
  [  ] [ ,1,1  ][   ]   ]]  1
  [ [ 2 ], [ 1 ] ], [ [  ], [ 2, 1 ] ], [ [ 3 ], [  ] ],
  [ [  ], [ 3 ] ] ]
</pre></div>

<p><a id="X8796C1D783ED9CB4" name="X8796C1D783ED9CB4"></a></p>

<h516.33BetaSet<h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; BetaSet</code>( <var class="Arg">alpha</var> )</[0,1,23 4,, ,7,,9 10 
<p>For a list <var class="Arg">alpha</var> that describes a partition of a nonnegative integer (see <code class="func">Partitions</code> (<a 


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">BetaSet( [ 4, 2, 1 ] );</span>
[ 1, 3, 6 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">BetaSet( [] );</span
[  ]
</pre></div>

<p><a id="X83DC50B67D74E674" name="X83DC50B67D74E674"></a></p>

<h4>16.3 <span class="Heading">Fibonacci and Lucas Sequences</span></h4>

<p><a id="X85AE1D70803A886C" name="X85AE1D70803A886C"></a></p>

<>.3- />

<div class="func"><table class="func" width="100%"><tr><td class=span class""gt<span><java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 81
<p>returns the <var class="Arg">n</var>th number of the <em>Fibonacci sequence</em>. The Fibonacci sequence <span class="SimpleMath">F_n</span> is defined by the initial conditions <span class="SimpleMath">F_1 = F_2 = 1</span> and the recurrence relation <span class="SimpleMath">F_{n+2} = F_{n+1} class">&;<span span class=G>[,,,] ; #  to computeNrDerangements([1..4])</span>

<p>Using generating functions one can prove that <span class="SimpleMath">F_n = ϕ^n - 1/ϕ^n</span>, where <span class="SimpleMath">ϕ</span> is <span class="java.lang.StringIndexOutOfBoundsException: Index 160 out of bounds for length 87


<div class="example"><pre>
;/java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
55
<span class="GAPprompt">gap></span> spanclass="">gt</><span class">     010,,,,],/>
9227465
<span class="GAPprompt">gap></span> 24
-55
/>div

<p><a id="X7830A03181D67192" name="X7830A03181D67192"></a></p>

.- />

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&<;hr >
<> with parameters <var class="Arg">P/varand <var class=Arg>Q/> which must be integers, as a list of three integers. If <var class="Arg">k</var> is a negative integer, then the values of the Lucas sequence may be nonintegral rational numbers, with denominator roughly <var class="Arg">Q</var>^<var class="Arg">k</var>.</p>

<p>Let <span class="SimpleMath">α, β</span> be the two roots of <span class="SimpleMath">x^2 - P x + Q</span> then we define <code class="code">Lucas( <var class="Arg">P</var>, <var class="Arg">Q</var>, <var class="Arg">k</var> )[1]</code> <span class="SimpleMath">= U_k = (α^k - β^k) / (α - β)</span> and <code class="code">Lucas( <var class="Arg">P</var>, <var class="Arg">Q</var>, <var class="Arg">k</var> )[2]</code> <span class="SimpleMath">= V_k = (α^k + β^k)</span> and as a convenience <code class="code">Lucas( <var class="Arg">P</var>, <var class="Arg">Q</var>, <var class="Arg">k</var> )[3]</code> <span class="SimpleMath">= Q^k</span>.</p>

<p>The following recurrence relations are easily derived from the definition <span class="SimpleMath">U_0 = 0, U_1 = 1, U_k = P U_{k-1} - Q U_{k-2}</span> and <span class="SimpleMath">V_0 = 2, V_1 = P, V_k = P V_{k-1} - Q V_{k-2}</span>. Those relations are actually used to define <code class="func">Lucas</code> if <span class="SimpleMath">α = β</span>.</p>

<p>Also the more complex relations used in <code class="func">Lucas</code> can be easily derived <span class="SimpleMath">U_2k = U_k V_k</span>, <span class="SimpleMath">U_{2k+1} = (P U_2k + V_2k) / 2</span> and <span class="SimpleMath">V_2k = V_k^2 - 2 Q^k</span>, <span class="SimpleMath">V_{2k+1} = ((P^2-4Q) U_2k + P V_2k) / 2</span>.</p>

<p><code class="code">Fibonacci(<var class="Arg">k</var>)</code> (see <code class="func">Fibonacci</code> (<a href="chap16.html#X85AE1D70803A886C"><span class="RefLink">16.3-1</span></a>)) is simply <code class="code">Lucas(1,-1,<var class="Arg">k</var>)[1]</code>. In an abuse of notation, the sequence <code class="code">Lucas(1,-1,<var class="Arg">k</var>)[2]</code> is sometimes called the Lucas sequence.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..10], i -> Lucas(1,-2,i)[1] );     # 2^k - (-1)^k)/3</span>
[ 0, 1, 1, 3, 5, 11, 21, 43, 85, 171, 341 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..10], i -> Lucas(1,-2,i)[2] );     # 2^k + (-1)^k</span>
[ 2, 1, 5, 7, 17, 31, 65, 127, 257, 511, 1025 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..10], i -> Lucas(1,-1,i)[1] );     # Fibonacci sequence</span>
[ 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 ]
<span class="GAPprompt">gap></span> <span class="GAPinput">List( [0..10], i -> Lucas(2,1,i)[1] );      # the roots are equal</span>
[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
</pre></div>

<p><a id="X821888E77EB43F67" name="X821888E77EB43F67"></a></p>

<h4>16.4 <span class="Heading">Permanent of a Matrix</span></h4>

<p><a id="X7F0942DD83BBAB7A" name="X7F0942DD83BBAB7A"></a></p>

<h5>16.4-1 Permanent</h5>

<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">&#an style='color: green'>8227; Permanent</code>( <var class="Arg">mat</var> )</td><td class="tdright">( attribute )</td></tr></table></div>
<p>returns the <em>permanent</em> of the matrix <var class="Arg">mat</var>. The permanent is defined by <span class="SimpleMath">∑_{p ∈ Sym(n)} ∏_{i = 1}^n mat[i][i^p]</span>.</p>

<p>Note the similarity of the definition of the permanent to the definition of the determinant (see <code class="func">DeterminantMat</code> (<a href="chap24.html#X8488D69A7ADDB4E2"><span class="RefLink">24.4-4</span></a>)). In fact the only difference is the missing sign of the permutation. However the permanent is quite unlike the determinant, for example it is not multilinear or alternating. It has however important combinatorial properties.</p>


<div class="example"><pre>
<span class="GAPprompt">gap></span> <span class="GAPinput">Permanent( [[0,1,1,1],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [1,0,1,1],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [1,1,0,1],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [1,1,1,0]] );  # inefficient way to compute NrDerangements([1..4])</span>
9
<span class="GAPprompt">gap></span> <span class="GAPinput"># 24 permutations fit the projective plane of order 2:</span>
<span class="GAPprompt">gap></span> <span class="GAPinput">Permanent( [[1,1,0,1,0,0,0],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [0,1,1,0,1,0,0],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [0,0,1,1,0,1,0],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [0,0,0,1,1,0,1],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [1,0,0,0,1,1,0],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [0,1,0,0,0,1,1],</span>
<span class="GAPprompt">></span> <span class="GAPinput">     [1,0,1,0,0,0,1]] );</span>
24
</pre></div>


<div class="chlinkprevnextbot"> <a href="chap0.html">[Top of Book]</a>   <a href="chap0.html#contents">[Contents]</a>    <a href="chap15.html">[Previous Chapter]</a>    <a href="chap17.html">[Next Chapter]</a>   </div>


<div class="chlinkbot"><span class="chlink1">Goto Chapter: </span><a href="chap0.html">Top</a>  <a href="chap1.html">1</a>  <a href="chap2.html">2</a>  <a href="chap3.html">3</a>  <a href="chap4.html">4</a>  <a href="chap5.html">5</a>  <a href="chap6.html">6</a>  <a href="chap7.html">7</a>  <a href="chap8.html">8</a>  <a href="chap9.html">9</a>  <a href="chap10.html">10</a>  <a href="chap11.html">11</a>  <a href="chap12.html">12</a>  <a href="chap13.html">13</a>  <a href="chap14.html">14</a>  <a href="chap15.html">15</a>  <a href="chap16.html">16</a>  <a href="chap17.html">17</a>  <a href="chap18.html">18</a>  <a href="chap19.html">19</a>  <a href="chap20.html">20</a>  <a href="chap21.html">21</a>  <a href="chap22.html">22</a>  <a href="chap23.html">23</a>  <a href="chap24.html">24</a>  <a href="chap25.html">25</a>  <a href="chap26.html">26</a>  <a href="chap27.html">27</a>  <a href="chap28.html">28</a>  <a href="chap29.html">29</a>  <a href="chap30.html">30</a>  <a href="chap31.html">31</a>  <a href="java.lang.StringIndexOutOfBoundsException: Range [0, 1023) out of bounds for length 0

<hr />
<p class="foot">generated by <a href="https://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc">GAPDoc2HTML</a></p>
</body>
</html>

Messung V0.5 in Prozent
C=99 H=100 G=99

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.108Angebot  ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Ergonomie der
Schnittstellen

Diese beiden folgenden Angebotsgruppen bietet das Unternehmen

Angebot

Hier finden Sie eine Liste der Produkte des Unternehmens






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1128594
#Domains=1976912