Probability of Non-Adjacent Zeros in 11-Digit Integer with 1 and 0 Digits

AI Thread Summary
The discussion revolves around calculating the probability that no two zeros are adjacent in an 11-digit integer composed of the digits 1 and 0. The initial approach involved counting permutations and resulted in a probability of 3/64, but it was later corrected to 9/64. Participants explored the use of recurrence relations to define the number of valid sequences, leading to the conclusion that the relationship can be modeled similarly to the Fibonacci sequence. The final consensus is that the number of valid sequences can be expressed as f_n = f_{n-1} + f_{n-2}, where f_n represents the count of valid sequences of length n. The conversation highlights the complexity of combinatorial problems and the importance of recurrence relations in solving them.
  • #51
So can we say you have understood and got the answer?
 
Physics news on Phys.org
  • #52
Raghav Gupta said:
That pattern is finding nth term for sequence
0, 1, 3, 8, 16, 27------
The last two terms are wrong, should be 19 and 43.
AdityaDev said:
Haruspex dissapeared. He left me confused. I don't know how to proceed.
hey, I have to sleep sometime. (7:30am here now.)
Having got the recurrence relation, it is a trivial matter to work through from the smaller numbers:
f0=1, f1=2, so f2=1+2=3, etc. up to f10=144.
As to whether this method is too 'advanced', I would not have thought so. You don't need to know it is called a recurrence relation, and you don't need to solve the relation (i.e. find a general formula for fn). It's more like applying induction. You need to spot that having filled in the first digit the problem for the remaining digits hasn't changed much.

The 10C1+8C3+... method is fine too. It involves rather more calculation though. If you spot the recurrence method, it's much easier.
 
  • Like
Likes AdityaDev
  • #53
haruspex said:
hey, I have to sleep sometime. (7:30am here now.).
we are in different timezones then. My 2:22 am is your 7:30 am!
 
  • #54
AdityaDev said:
10C1+9C2+8C3+7C4+6C5
There should be 11C0 term = 1 also considering no zeroes in number. :smile:
haruspex said:
Having got the recurrence relation, it is a trivial matter to work through from the smaller numbers:
f0=1, f1=2, so f2=1+2=3, etc. up to f10=144.
As to whether this method is too 'advanced', I would not have thought so. You don't need to know it is called a recurrence relation, and you don't need to solve the relation (i.e. find a general formula for fn). It's more like applying induction. You need to spot that having filled in the first digit the problem for the remaining digits hasn't changed much.
But how you got f10 fast? It would take time to add that numbers starting from f0 unless you use a software.
It's like fibonacci series where there are no first two terms 0, 1.
I think you may have applied Binet's formula? But it is also lengthy, considering the powers and not using calculator.
Haruspex left me. He made me confused that how to proceed.
How you know that Haruspex is he/she.:biggrin:
According to wikipedia-Haruspex
 
Last edited:
  • #55
Raghav Gupta said:
How you know that Haruspex is he/she.:biggrin:
According to wikipedia-Haruspex
That does not matter. I got my doubt cleared and I am happy. Even if haruspex is a she.. what difference does it make?
 
  • #56
I was just joking.
But how we get f10 fast? Do we have to add all terms starting from f0
I got my doubt cleared and I am happy
I think you meant question and not doubt.
 
Last edited:
  • #57
Raghav Gupta said:
But how you got f10 fast? It would take time to add that numbers starting from f0 unless you use a software.
It's like fibonacci series where there are no first two terms 0, 1.
f(0) = 1, f(1) = 2 easy
after that
1+2=3
2+3=5
3+5=8
5+8=13
8+13=21
13+21=34
21+34=55
34+55=89
55+89=144
Done. Isn't that simpler than working out all those combinatorial functions? But I suppose you used an app/spreadsheet for that.
It might not be obvious to you that f(0)=1, so start with f(1) and f(2) by hand instead.

One benefit of my approach is that it scales. You can easily deduce the asymptotic behaviour.
Putting the two approaches together yields an interesting result about the sum of a combinatorial series.
 
  • #58
Thanks, I learned other approach but what if there were more spaces instead of 10. Now should we use Binet's formula? In software we can make loops for calculating that nth term for a recurrence relation and here it's easy because there were only 10 spaces.
In my approach there is a sequence for finding nth term.
 
Last edited:
  • #59
Raghav Gupta said:
Thanks, I learned other approach but what if there were more spaces instead of 10. Now should we use Binet's formula? In software we can make loops for calculating that nth term for a recurrence relation and here it's easy because there were only 10 spaces.
In my approach there is a sequence for finding nth term.
Even if there's no effort obtaining the combinatorial terms in your series, you still have to add n of them (or n/2, maybe). Using Fibonacci, you have to add n terms, but no combinatorials to calculate.
Ultimately, Binet may be fastest. You'd have to round to nearest integer, but I'm sure you could go a long way before that might go wrong.
 
  • Like
Likes Raghav Gupta
  • #60
Yeah that's true, I agree with you. Ultimately it comes to the person in the first place how to originate approach from his mind.
I never have seen that approach by anyone in my school and it's a kinda gem for me.
 
  • Like
Likes AdityaDev

Similar threads

Replies
2
Views
3K
Replies
4
Views
3K
Replies
1
Views
1K
Replies
125
Views
19K
Replies
2
Views
3K
Back
Top