If the sequence is like this, you actually don’t have to formulate a formula. You just have to formulate a principle. You just have to remember that when n is an odd number, the value would always be 1. If the n is an even number, the value would always be 0.