Direct and inverse problems in additive number theory and in non abelian group theory