Answer: 230 Ω, 1/8 W
Explanation:
In order to keep a constant forward current of 20 mA, causing a voltage loss of 1.4 V within the LED, we need to choose a resistor, where there must be a loss that allow us to use 2nd Kirchoff's Law as follows:
6V = 1.4 V + 20mA * R ⇒ R= 4.6 V / 20 mA = 230 Ω.
Now, in order to choose the power rating for thee resistor, we can compute first the power dissipated at the resistor, as follows (Joule's Law):
P= IF² * R = (20mA)²* 230 Ω = 0.092 W.
As the dissipation is almost 0.1 W, we need to choose a resistor which power rating (being the smallest possible) be greater than 1/10 W, so we can choose safely 1/8 W.