there are 6 boxes numbered 1 , 2 , … , . 6 . each box is to be filled up either with a red or a green ball in such a way that at least 1 box contains a green ball and the boxes containing green balls are consecutively numbered . the total number of ways in which this can be done is
n0 = 6.0
n1 = 1.0
n2 = 2.0
n3 = 6.0
n4 = 1.0
t0 = n0 + n1
t1 = n0 * t0
answer = t1 / n2
print(answer)