This is the answers I got for you - use 21 LEDs, it's more elegent
Solution 0: 3 x 7 array uses 21 LEDs exactly
+----|>|----|>|----|>|---/\/\/----+ R = 120 ohms
+----|>|----|>|----|>|---/\/\/----+ R = 120 ohms
+----|>|----|>|----|>|---/\/\/----+ R = 120 ohms
+----|>|----|>|----|>|---/\/\/----+ R = 120 ohms
+----|>|----|>|----|>|---/\/\/----+ R = 120 ohms
+----|>|----|>|----|>|---/\/\/----+ R = 120 ohms
+----|>|----|>|----|>|---/\/\/----+ R = 120 ohms
The wizard says: In solution 0:
each 120 ohm resistor dissipates 48 mW
the wizard says the color code for 120 is brown red brown
the wizard thinks ¼W resistors are fine for your application
together, all resistors dissipate 336 mW
together, the diodes dissipate 1386 mW
total power dissipated by the array is 1722 mW
the array draws current of 140 mA from the source.