The major-axis distribution of long-period comets