nevermind.... im dumb.
thanks anyways.
The problem: Find a closed form of the following sequence 0,3,2,5,4,7,6,9,8,11,10,13,12.
So I get that the odds are n-1 and the evens are n+1 and I've started the equation and so far I have (the first part is supposed to be (-1)^(n-1)) the first half to find the odd numbers and the second to find the even numbers.
I'm having trouble coming up with where to put the n-1 and n+1. Any help or hints is appreciated.
Thanks.
Hello, geoffl!
You're not dumb . . . If you are, you've got company.
Find a closed form for the sequence: 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12.
I too got distracted by the odd/even subsequences
. . and got involved with and . (the "blinker functions")
It took me a while to see a simpler explanation.
. . If is odd, subtract 1 from .
. . If is even, add 1 to .
Therefore: .