Given n and a letter C,how many possible words of length n can be formed that are with no two consecutive C in the word.
For example,if n=3, C='b',then the word bcb,ccc,aab do not have any consecutive occurrence of 'b'.
But bbc,abb,bbb have consecutive occurrence of 'b'.
We can use only letters 'a' to 'z' to form this sort of word and can consider only lowercase letters.I have solved this problem in this way,but I'm not sure.For n=4,C='b',ans=(26^4)-C(2,1).25-C(3,1).25^2-C(4,1).25^3.