title: How do I set up and solve this recurrence relation for this algorithm?
body: <pre><code>Recursive R(n)
  if n==1 return 1;
  else return R(n-1)+n*n*n
  </code></pre>
  
  <p>How do I set up and solve this recurrence relation for this algorithm (sum of n cubes)?</p>