But when I see that it was closed because of being unclear I decided to make it better and ask again.
First I want to give a link to make it more clear first what is alternating series. What you see is that you can generate $1,-1,1,-1,\dots$ using this formula: $(-1)^n$.
Now if you want to have two positives and two negatives together $\{1,1,-1,-1,1,1,-1,-1,...\}$ you can explain it with floor function $(-1)^{\lfloor \frac{n}{2} \rfloor}$ or you can use triangular numbers: $(-1)^{\frac{n(n+1)}{2}}$. See other possible ways here and here.
Now when we want to have three positives and three negatives together:$\{1,1,1,-1,-1,-1,1,1,1,-1,-1,-1,...\}$ We could explain with floor function: $(-1)^{\lfloor \frac{n}{3} \rfloor}$ but because of we didn't learn floor function yet we don't have the permission to use it.
Also we didn't learn trigonometry then we cannot use it either. (Here is a solution using trigonometry may help.) Note that we want a single formula solving it with different formula is very easy.
Now what I want is a simple solution using simple algebra and without using floor function or trigonometry. This is the main sequence that if we find the previous sequence will solved easily.
$$A_n=\{3,7,11,-15,-19,-23,...\}$$
We should only add $4n+3$ next to it.
The news that I should tell you is that our teacher told us is that using absolouting value is not allowed then we can know $sign$ is also not allowed our teacher told us it should be in the form of an algebric formula like the other one that we used for two negative once and two positive once. He told us for solving this we should use degree $3$ algebra but how?
