title: Simplify function with Math.pow() and Math.floor() calls inside a loop
body: <p>How can I simplify the following function and the repeated calls to <code>Math.pow()</code>?</p>
  
  <pre><code>function x(a, b, c) {
      rv = Math.floor(a * Math.pow(2, b));
  
      for (i = 1; i &lt; c; i++) {
          rv += Math.floor(a * Math.pow(1.2, b + i));
      }
  
      return rv;
  }
  </code></pre>