I need to generate an array in Julia that contains all integers up to some number N, excluding the pair which is two integers apart. I assume that N itself is a multiple of 4. For example, if N=4, the list is
[1 4]
If N=8,
[1 4 5 8]
If N=16,
[1 4 5 8 9 12 13 16]
And so on. Is there an easy, efficient way of doing this in Julia? I tried a solution with collect, but I wasn't sure how to implement it correctly.