Suppose you have a sequence such as $5,1,11,5,17,9,23,13,29,17,35 ...$ where a piece wise function can describe the sequence
$5+6(x-1)$ for x is odd, and $1+4(x/2-1)$ for x is even
Is there any way to write a combined formula for all terms in the sequence?