Are these two the same? Which one of those is the correct form?

Sn = n
---[3n-1]
2

Sn = 3n^2 +n
-------
2

Sorry, in the first expression, only the n outside the parenthesis is being divided by 2

The entire second expression is being divided by 2.