EDIT: for context, here's the original formula I was referencing

6/5 * pow(n, 3) - 15 * pow(n, 2) + 100 * n - 140

The expected results are kind of as follows...

- n = 1 = 9
- n = 2 = 48
- n = 3 = 39
- n = 4 = 39

The results I got after plugging in the respective values are such.

- n = 1 = -54
- n = 2 = 10
- n = 3 = 57
- n = 4 = 97

What am I not doing right? How do I figure out where the error is?

This post has been edited by **Splashsky**: 25 September 2018 - 05:10 PM