Use the formula:

Keep in mind that you start counting by zero! Thus the 5th term correspond with k = 4.

Therefore the 5th term of

For the last example: A constant term only occurs if the exponents of x and are equal, thus you have to calculate the 4th term with k = 3. Since k is an odd number you get as the constant summand -20.