The number of alkanes having n carbons and a longest chain of length d: An application of a theorem of Polya

This paper tackles the problem of determining the number of structural isomers of an alkane. The primitive algorithm that is usually taught to students is confusing and generates redundancies.