Caterpillars provide one of the rare
graph enumeration problems for which a precise formula can be given: when
n ≥ 3, the number of caterpillars with
n unlabeled vertices is :2^{n-4}+2^{\lfloor (n-4)/2\rfloor}. For
n = 1, 2, 3, ... the numbers of
n-vertex caterpillars are :1, 1, 1, 2, 3, 6, 10, 20, 36, 72, 136, 272, 528, 1056, 2080, 4160, ... . ==Computational complexity==