Ky Fan’s inequality, weighted arithmetic and geometric means