If 5 leds in series run all right, then stick with this. 5 leds at 2V will need 10V so there is 2V extra to drop with a resistor. Using 20mA, R=V/I then R=100 ohm
For 15 leds you will need three strings connected in parallel. Total current 60mA.
For 40 leds, you will need 8 strings, giving...