Here are two approaches for determining the empirical formula for nicotine. The first was the approach used in lecture, the second a variation.
Notice in both cases we are converting the amount of each element to moles. A formula, empirical or otherwise, is the whole number ratio of elements in the substance.
e-mail me if you have any questions about the sample problems.