X is assigned "1" when K is 1
X is assigned "3" when K is 2
X is assigned "4" when K is 3
X is assigned "3" when K is 4
X is assigned "30" when K is 10