Algebraic description of n-alkane molecules