title: Reversing mod for a function?
body: <p>I'm trying to solve this equation:</p>
  
  <pre><code>(b(ax+b ) - c) % n = e 
  </code></pre>
  
  <p>Where everything is given except <code>x</code> 
  I tried the approach of :</p>
  
  <pre><code>(A + x) % B = C
  (B + C - A) % B = x
  </code></pre>
  
  <p>where <code>A</code> is <code>(-c)</code> and then manually solve for <code>x</code> given my other subs, but I am not getting the correct output. Would I possibly need to use eea? Any help would be appreciated! I understand this question has been asked, I tried their solutions but it doesn't work for me.</p>