Combinations 6 of 49 without the results with numbers in sequence

I have a problem I need to solve so I'd need an answer or a way to solve it.I need to find out the number of combinations of 6 numbers from 49 numbers. The tricky part (for me )is that I want to exclude the combinations of numbers that are in sequence of minimum 3 meaning:I want to exclude results like {1,2,3,4,5,6} or like {1,2,3,9,12,14} or {1,2,3,4,6,8} so on....

Re: Combinations 6 of 49 without the results with numbers in sequence

I mean that the sequence of consecutive numbers must not be contained in the result so this result {2,46,31,1,5,3} must also be excluded. I specified that order is not important because no. of combinations if order is important is 1.00683475e+10 and if it isn't no. of combinations is 13983816

Re: Combinations 6 of 49 without the results with numbers in sequence

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

Preety much.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

A(n,k) is 0 for n<=0, except A(0,0)=1.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

Numbers, of course.

Joke aside, n is how many numbers we choose from and k is how many numbers we choose.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

No. n=49 and k=6.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

Hi bobbym

Sorry. Take A(0,1)=1 as well.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

I'm calculating it. It will take a while.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

Do you think there is a way to speed it up?

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

I am just running the recurrence.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.

Re: Combinations 6 of 49 without the results with numbers in sequence

Yes.

Here lies the reader who will never open this book. He is forever dead.Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and PunishmentThe knowledge of some things as a function of age is a delta function.