Reconstructing the power spectrum of density fluctuations