You might find, that at 20mA, the LED forward voltage is slightly less than 3V and will increase the current a bit so go for a slightly higher value resistor with 3 LEDs.
Upscaling to several strings of LEDs should not be a problem.
You can't put 4 in series because there is nothing to limit the current thru them and, if all four were dropping 2.9V at 20mA, you'd be applying 12V across something that expects 11.6V and this may take a lot more current than 20mA.
You really can't accurately predict the current in this sort of application. If you use the datasheet curves, you can guesstimate what it should be (roughly) but slight changes in supply voltage, in driver drop and changes in temperature (as well as part-to-part variations) will cause large changes in the current.
As you didn't grace us with a link to the part datasheet (assuming that a decent one even exists), I'll pull one at random (an Rohm SMLP36RGB2W3) off the interwebs and refer to it:
With this particular set of RGB LEDs, you can see that the RED LED is going to be easy. With a nominal 3V Vdd we can put zero ohms in series (leaving nothing for the driver) and the blue LED will conduct about 5mA. The green LED with zero ohms in series will typically only conduct about 2mA.
However if the supply voltage (with zero ohms in series) is increased or decreased, the blue LED will go from 1.5mA to more than the 10mA maximum. The green LED will go from way under 1mA (basically off) to more than 7mA. In this case, the green LED has a higher Vf than the blue, because its high-efficiency InGaN construction rather than the cheaper GaP.
If the green was GaP, it would probably be workable (over moderate temperature range and with a tightly regulated Vdd) but you're really in guessing (or at least empirical testing) territory rather than engineering territory. You certainly will not be able to get a stable "white" by combining RGB since the color balance will change radically with supply voltage and temperature.
Best Answer
Using Ohms law. Since we know the current, source voltage, and LED forward voltage drop, we must calculate for the series Resistor. R = (V Source - V Forward) / I.
(6V - 2V) / 0.02A = 4V / 0.02A = 200Ω
220Ω is the next resistor up.
Now since we have the resistance, we can calculate Wattage of the Resistor. P = V (of Resistor) * I
4v * 0.02A = 0.08W or less than 1/8th (0.125) Watts. A 1/8W Resistor would work.
A better solution is two leds in series, sharing the current.
(6 - 2 - 2) / 0.02 = 100Ω
2v * 0.02A = 0.04W. A 100Ω 1/8W would work.