Option (A) is correct.
Explanation: The colours repeat in groups of 4. The blue diyas are at positions 4, 8, 12, 16, ..., the multiples of 4. So the nth blue diya is at position 4n.
Each green diya is just before a blue diya. So the green diyas are at positions 3, 7, 11, 15, ..., which are one less than the multiples of 4. The nth green diya is at position
4n−1
Check: for n=1, 4×1−1=3; for n=2, 4×2−1=7; for n=3, 4×3−1=11. These are green in the picture and the pattern.
Why the other options are wrong
- (B) 3n comes from green being the 3rd colour. But the pattern repeats every 4 diyas, not every 3. For n=2 it gives position 6, which is yellow.
- (C) 4n+3 starts counting from n=0. For n=1 it gives 7, which is the second green diya, not the first.
- (D) n+4 adds the group size instead of multiplying by it. For n=1 it gives 5, which is red.