Count missing hydrogen pairs
A neutral acyclic saturated hydrocarbon has hydrogens. Closing a ring or adding a double bond removes one hydrogen pair; a triple bond removes two pairs. Ordinary trivalent nitrogen adds one hydrogen to the saturated allowance, while each monovalent halogen replaces one. Divalent oxygen does not change that allowance.
Thus, for ordinary-valence neutral formulas,
A new example with nitrogen and a halogen
For ,
Its saturated hydrogen allowance is . The observed eight hydrogens leave four missing, or two pairs. One compatible connectivity is : the nitrile triple bond supplies both DBE units. This is an example of a compatible structure, not a unique identification from the formula.
Use DBE as a constraint
DBE records a total, not the location of bonds. A value of two may represent a triple bond, two double bonds, two rings, or a ring plus a double bond. Spectroscopic or connectivity evidence is needed to choose among possibilities.
A negative or half-integer result should prompt a formula and charge check. The neutral formula is not a universal rule for ions, radicals, or unusual valence states. Never repair a surprising count by silently dropping a nitrogen or a halogen.
Related question
Apply this knowledge
Use the concept guide to understand the reasoning, then return to the complete question and worked answer.
Degrees of Unsaturation Formula: Find Missing Hydrogen CountsSources
These references support the core concepts and interpretation boundaries explained above.