Exact solution of the Percus-Yevick equation for a hard-core fluid in odd dimensions