title: i need to understand a solution to a row sum odd numbers method in ruby
body: <p>The question:</p>
  
  <p>Calculate the row sums of this triangle from the row index.</p>
  
  <pre><code>row_sum_odd_numbers(1); # 1
  row_sum_odd_numbers(2); # 3 + 5 = 8
  row_sum_odd_numbers(3); # 7 + 9 + 11 = 27
  </code></pre>
  
  <p>...</p>
  
  <pre><code>Test.assert_equals(row_sum_odd_numbers(1), 1)
  
  Test.assert_equals(row_sum_odd_numbers(2), 8)
  
  Test.assert_equals(row_sum_odd_numbers(13), 2197)
  
  Test.assert_equals(row_sum_odd_numbers(19), 6859)
  
  Test.assert_equals(row_sum_odd_numbers(41), 68921)
  </code></pre>
  
  <p>The solution to the question is as follows:</p>
  
  <pre><code>def row_sum_odd_numbers(n)
    return n**3
  end
  </code></pre>
  
  <p>I understand that this code returns the answer. I don't understand how it returns the answer. Why does the 3rd exponent of n return the row sum of odd numbers? </p>