Relative equilibria in curved restricted 4-and 5-body problems