Cournot competition with n firms