title: How to compute equations of this type (x^1+...x^n) in C#?
body: <p>I have a math problem which is written like this:</p>
  
  <pre><code>x^1+x^2+x^3+...+x^n
  </code></pre>
  
  <p>Are there any constructs in C# that will help me solve these kinds of equations?  </p>
  
  <p>I know I could write a for loop or use recursion to accomplish this, but I remember reading about some construct in c# that will pre-compile such a statement for later execution.</p>
  
  <p>Are there any interesting ways to solve these kinds of equations?</p>