Someone2841
New member
- Joined
- Sep 7, 2011
- Messages
- 35
\(\displaystyle
c(s) = (7 (2 s+1) \bmod 7+5) \bmod 12
\)
For integers beginning with 0, the function should output (cyclically) 0,2,4,5,7,9,11 (quite an important sequence of numbers, if anyone is familiar). Does anyone know if there is a simpler way write such an expression?
c(s) = (7 (2 s+1) \bmod 7+5) \bmod 12
\)
For integers beginning with 0, the function should output (cyclically) 0,2,4,5,7,9,11 (quite an important sequence of numbers, if anyone is familiar). Does anyone know if there is a simpler way write such an expression?
Last edited: