Wikipedia cites Danmarks Statistik for the population numbers, the official government statistics.
The 2.4m is in 1900, 3.5m in 1930.