title: Applying function repeatedly to generate List
body: <p><a href="https://i.stack.imgur.com/6Dvjn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Dvjn.png" alt="enter image description here" /></a></p>
  <p>I currently have this f# function</p>
  <pre><code>let collatz' n =
  match n with
  | n when n &lt;= 0 -&gt; failwith &quot;collatz' :n is zero or less&quot;
  | n when even n = true -&gt; n / 2
  | n when even n = false -&gt; 3 * n + 1
  </code></pre>
  <p>Any tips for solving the following problem in F#?</p>