0

Hello there fellow mathematicians,

I'm trying to reduce a strange pattern of constants to a simpler way, but I find that the pattern of signs are changing as follows: (-, -, +, -, -, +, -, -, +, ...).

I tried a rare combination of the function floor to achieve that, but it is a little bit rough:

$(-1)^{ n \hspace{1mm}+ \left \lfloor\frac{n + 1}{3} \right \rfloor}$,

I couldn't find any simpler form to obtain the same result, so... Is there a easier way to express the pattern of signs previously said?

And in fact... I'm also looking for a way to get a similar pattern of 1's and 0's: (1, 1, 0, 1, 1, 0, 1, 1, 0, ...).

But for that I don't have the slightest idea how to achieve it, so... any suggestions?

Gerry Myerson
  • 185,413

0 Answers0