Pattern Question

knucles

New member
Joined
Sep 11, 2020
Messages
1
Does anyone know an equation that can produce the following patterns (starting at nth index 0):

1) -0.5, 0, 0.5, 0, -0.5, 0, 0.5...

2) 0, 1, 2, 3, 1, 2, 3, 4, 2, 3, 4, 5, 3, 4, 5, 6...

The following patterns require the use of modulus. Any help would be greatly appreciated!
 
Last edited:
If you're referring to modular arithmetic, i.e. the remainder, yes, both of these could be written in terms of that.

Have you given it a try? We'd like to work with you, so you can learn to do it yourself, rather than just giving you an answer:
 
I would do the first question by thinking about this similar sequence...
-0.5, 0, 0.5, 1, -0.5, 0, 0.5, 1
...and then think about how you can force every odd numbered term to be 0

Or have you got an idea for a different approach? Please share your thoughts/ work with us so that we can guide your thinking.
 
Top