<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Combinations on Sulprobil</title>
    <link>https://www.sulprobil.de/tags/combinations/</link>
    <description>Recent content in Combinations on Sulprobil</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 20 May 2026 04:35:00 +0100</lastBuildDate>
    <atom:link href="https://www.sulprobil.de/tags/combinations/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Combinations with Subsets k of n (Excel / VBA)</title>
      <link>https://www.sulprobil.de/combinations_with_k_subsets_of_n_en/</link>
      <pubDate>Wed, 20 May 2026 04:35:00 +0100</pubDate>
      <guid>https://www.sulprobil.de/combinations_with_k_subsets_of_n_en/</guid>
      <description>&lt;h2 id=&#34;abstract&#34;&gt;Abstract&lt;/h2&gt;&#xA;&lt;p&gt;This algorithm generates all subsets of n with k elements.&lt;/p&gt;&#xA;&lt;p&gt;The Excel function &lt;em&gt;COMBIN(n, k)&lt;/em&gt; shows the count of all combinations, but the algorithm&#xA;presented here lists all combinations individually so that you can examine them if necessary.&#xA;The program is fast - you can compare to the formula solutions you can find below under &lt;strong&gt;Other Links&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;example&#34;&gt;Example&lt;/h3&gt;&#xA;&lt;p&gt;Input:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.sulprobil.de/combinations_with_k_subsets_of_n_input.png&#34; alt=&#34;combinations_with_k_subsets_of_n_input&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Output:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.sulprobil.de/combinations_with_k_subsets_of_n_output.png&#34; alt=&#34;combinations_with_k_subsets_of_n_output&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;literature&#34;&gt;Literature&lt;/h2&gt;&#xA;&lt;p&gt;Reingold, Nievergelt, Deo: Combinatorial Algorithms, 1977, Algorithm 5.9, p. 186, ISBN 0-13-152447-X&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
