- #1
NemoReally
- 188
- 1
Actually, it is really as easy as it looks. Paradoxically, it may be helpful to regard it as a special case of:camel-man said:1
1 2 1
1 2 1 2 1
1 2 1 2 1 2 1
1 2 1 2 1 2 1 2 1
I am stumped on how to do this, is it really as easy as it looks?
1 2 3 ...n 1
1 2 3 ...n 1 2 3 ...n 1
1 2 3 ...n 1 2 3 ...n 1 2 3 ...n 1
1 2 3 ...n 1 2 3 ...n 1 2 3 ...n 1 2 3 ...n 1
1 2 3 ...n 1 2 3 ...n 1 2 3 ...n 1 2 3 ...n 1 2 3 ...n 1
which is only marginally more difficult to program but may be easier to think about because it's more general. Look up the C operator "%"
Here's an example output from a Mathcad function, which is written in 5 (completely invisible and very short) lines
Attachments
Last edited: