Respuesta :

If I have understood the question correctly the answer should be n=6