Which is the correct general formula for the specified non-cyclic, open-chain homologous series?
saturated diols — CnH2nO2\text{C}_n\text{H}_{2n}\text{O}_2CnH2nO2
alkadienes (with two C=C\text{C}=\text{C}C=C double bonds) — CnH2n−4\text{C}_n\text{H}_{2n-4}CnH2n−4
saturated dicarboxylic acids — CnH2n−2O4\text{C}_n\text{H}_{2n-2}\text{O}_4CnH2n−2O4
saturated dihaloalkanes — CnH2n−2X2\text{C}_n\text{H}_{2n-2}\text{X}_2CnH2n−2X2 (where X\text{X}X is a halogen)