Finding factors and determining groups