Show that the sum of the first $n$ positive integers that are divisible by neither 2 nor 3 is $\frac{3}{2}n^2-\frac{1}{2}$ if $n$ is odd and is $\frac{3}{2}n^2$ if $n$ is even.
I have verified that the formulas work for the first 10 integers in the series, however, I do not know how to prove that it is true for all such positive integers. I have never dealt with a summation by cases before.
HINT
Let $X_n$ be the sequence of positive integers that are not divisible by 2 or 3 ordered ascending.
Your base case for odd $n$ should be where $n$ is one. Ex -- $\frac{3}{2} * 1^2 - \frac{1}{2} = 1$.
Then you need to show that if this holds for $n$, then it holds for $n+2$.
Your base case for even $n$ should be the case where $n$ is two.
Then you need to show that if this holds for $n$, then it holds for $n+2$ as well.