Sorry, brain fart. Try this:

(0.5*pow(n-r+1, 2)) + (-0.5*(n-r+1))

I also removed those parts with the very small coefficients, since after rounding, they are basically 0 anyway.

1st, 435.00

2nd, 406.00

3rd, 378.00

4th, 351.00

5th, 325.00

6th, 300.00

7th, 276.00

8th, 253.00

9th, 231.00

10th, 210.00

11th, 190.00

12th, 171.00

13th, 153.00

14th, 136.00

15th, 120.00

16th, 105.00

17th, 91.00

18th, 78.00

19th, 66.00

20th, 55.00

21st, 45.00

22nd, 36.00

23rd, 28.00

24th, 21.00

25th, 15.00

26th, 10.00

27th, 6.00

28th, 3.00

29th, 1.00

30th, 0.00