First, you should realize that "n" and "k" are arbitrary choices so any formula written using "n" can be written using "k" and mean exactly the same thing. Here, however, we are given an explicit relationship, n= 2k.
Do you know the McLaurin polynomial for cos(x) using, say, "n" as the index? Do you see what you get if you replace "x" by "2x" in that polynomial? Do you notice that, since cos(x) is an "even" function, that polynomial has only even exponents? Do you see that if n= 8 it can be written as n= 2(4). So what is "k" in that case?