How to recover anL-series from its values at almost all positive integers. Some remarks on a formula of Ramanujan