title: Implementing partial recursive function in C#
body: <p>I am having trouble with somwhow implementing a partial recursive function (at least in my mind though).</p>
  
  <p>for any given <code>p</code> and arbitrary <code>maxsteps</code> = 100, calculate <code>L</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/0hOB4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0hOB4.png" alt="enter image description here"></a></p>