Raghav Gupta
- 1,010
- 76
But that's difficult finding the ways of filling in the rest.haruspex said:I'm trying to get you to express the answer to my question using the ##f_n## sequence.
By definition, the number of ways of filling in n-1 digits with no two adjacent zeroes is ##f_{n-1}##. Pretend that you knew this number. Suppose it's 999. Now you have n digits to fill in. You fill in the first as a 1, say. How many ways of filling in the rest?
Though there may be another way but we can generalize pattern
##f_4= 2^4-8##AdityaDev said:##f_1 = 2## 0 and 1
##f_2 = 2^2-1## each place has two options and the 00 case has to be subtracted.
##f_3 = 2^3-3## 001,100,000 removed
It keeps getting complicated.
##f_n = 2^n-some pattern##
That pattern is finding nth term for sequence
0, 1, 3, 8, 16, 27------