For a symmetric molecule with an even number of chiral centres (for acyclic molecules with chiral centres only, not considering $\pi$ bonds or rings), the formulae (also mentioned in this question) are:
No. of meso isomers $=2^{\frac n 2 -1}$
No. of optical isomers $=2^{n-1}$
However, when I went to test it out on $\ce{CH3-CHD-CHD-CHD-CHD-CH3}$ ($n=4$), my results were not matching with the formula.
And I got $6$ enantiomer pairs ($12$ optical isomers):
The formula for meso isomers seems to match; $2^{{4 \over 2} -1} = 2^1 = 2$
But the formula for optical isomers doesn't match; $2^{4-1} = 2^3 = 8 \neq 12$
Where did I go wrong? Or is the formula wrong? If so, what is the correct formula?