title: How will be changed the number by dividing the absolute value for storing the result of changing the divider?
body: <p>Here is a formula:</p>
  
  <pre class="lang-none prettyprint-override"><code>RESULT = (CONST + var) % MOD
  </code></pre>
  
  <p><code>RESULT</code> - interger, >= 0</p>
  
  <p><code>CONST</code>, <code>var</code>, <code>MOD</code> - interger, > 0</p>
  
  <p>Question:</p>
  
  <p>How calculate <code>var</code> if:</p>
  
  <ul>
  <li><code>MOD</code> will be incremented</li>
  <li><code>MOD</code> will be decremented</li>
  </ul>
  
  <p><code>RESULT</code> и <code>CONST</code> won't be changed.</p>
  
  <p>Not bruteforce.</p>