The original text is the following. If n is odd, then it's now easy to build an example: for i from 1 to n ai=2i−1, ai=2i, if i is even, and ai=2i , ai=2i−1 if i is odd.
I think that it will be clearer if the text will be changed as the following. If n is odd, then it's now easy to build an example: for i from 1 to n, when i is odd, ai=2i-1, when i is even, ai=2i, for i from n+1 to 2n, when i-n is odd, ai=2i, when i-n is even, ai=2i-1.