Is there a trick or a formula that given a molecular formula, allows you to know exactly how many constitutional isomers can be formed with that many atoms? Or is it more of a trial-and-error technique?
I'm looking for something along the lines of $2^n$ of maximum number of possible stereo-isomers, where n is the number of stereogenic centers present in a compound.