title: Find the result of a function
body: <p>There is a code of an unknown function:</p>
  
  <pre><code>function Magic(number)
      r = number mod 2
      print r
      if number &gt; 1
          Magic(number / 2)
  </code></pre>
  
  <p>(written in pseudo-code)</p>
  
  <p>The question is: what integer number should be passed in order to receive the following answer</p>
  
  <pre><code>0 1 1 0 0 1
  </code></pre>
  
  <p>The main problem is that I can't figure out how mod is working in pseudocode.
  Should 5,5 mod 3 = 2.5 or 2</p>