Question. I am interested in whether there are methods to simplify a term with iterated $\sum$s in it where the range of one $\sum$-symbol may depend on a variables of the preceding $\sum$-symbols.
Example. In particular I am interested in this example: $$f(n)=\sum_{i=0}^{ \lfloor\frac{n}{3} \rfloor}\sum_{j=0}^{\lfloor \frac{n-3i}{2} \rfloor} 1.$$ How can one express $f(n)$ with a simpler formula, without the $\sum$-symbols and without the variables $i$ and $j$ occuring in it?
Note that $$f(n)=\sum_{i=0}^{ \lfloor\frac{n}{3} \rfloor}\sum_{j=0}^{\lfloor \frac{n-3i}{2} \rfloor} 1=\sum_{i=0}^{ \lfloor\frac{n}{3}\rfloor}\left(\lfloor \frac{n-3i}{2} \rfloor+1\right).$$ Now consider $n=6q+r$ with $r=0,1,2,3,4,5$. For example if $r=0$ then \begin{align*} f(n)&=\sum_{i=0}^{ 2q}\left(\lfloor \frac{6q-3i}{2} \rfloor+1\right)=\sum_{j=0}^{q}\left(\lfloor \frac{6q-3(2j)}{2} \rfloor+1\right)+\sum_{j=1}^{q}\left(\lfloor \frac{6q-3(2j-1)}{2} \rfloor+1\right)\\ &=\sum_{j=0}^{q}\left(3(q-j)+1\right)+\sum_{j=1}^{q}\left(3(q-j)+1) +1\right)=6\sum_{j=0}^{q}j+q+1-3q +2q\\ &=3q^2+3q+1. \end{align*}
Finally, you should verify that $$f(n)=\mbox{round}\left(\frac{(n+3)^2}{12}\right)\tag{1}$$ see the OEIS sequence A001399.
P.S. Note that for $n=6q$, formula (1) holds $$f(n)=\mbox{round}\left(\frac{(6q+3)^2}{12}\right)=\mbox{round}\left(3q^2+3q+3/4\right)=3q^2+3q+1.$$