I want a formula to explain this set:$\{3,7,-11,-15,19,23,...\}$
Our teacher asked us to do.If they are one negative and one positive it was easy but now It become hard I think a lot, but no results.Please give me first some hints I want to solve it myself.
update1:the numbers are in the form of $4k-1$ without including negitive and positive.(two of them are negative and two of them are positive.
You're being asked to continue a sequence. I'm not going to get philosophical about the difference between sets and sequences, but to see it as a sequence helps us think of that invaluable math resource, the OEIS, a search engine for sequences of integers. I put in
3,7,-11,-15,19,23and got http://oeis.org/A004767a(n) = 4*n + 3.as the very first result.Obviously $4n + 3$ does not account for the way the signs alternate, but other than that little detail, we're done. You already know that $(-1)^n$ alternates signs, but just a little too frequently for what you're trying to do. So you need a way to slow it down: $$(-1)^{\lfloor \frac{n}{2} \rfloor} (4n + 3).$$ Just to be absolutely sure, test it in Wolfram Alpha:
Table[(-1)^(Floor[n/2])(4n + 3), {n, 0, 24}]