Deutsch   English   Français   Italiano  
<87sew9in7e.fsf@bsb.me.uk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Ben Bacarisse <ben@bsb.me.uk>
Newsgroups: comp.lang.python,sci.math,sci.lang
Subject: Re: (1 Combination 2) = 0 -- Better explanation?
Date: Tue, 16 Jul 2024 12:35:33 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <87sew9in7e.fsf@bsb.me.uk>
References: <v71e3t$a766$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 16 Jul 2024 13:35:37 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7120799a18215770fdf36e332ede473d";
	logging-data="1319572"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/auaLITo0A+jKoZLseKcZme5xPTq3tHuQ="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:2BcOjecQckk1b7rSB1u+A1/1aOw=
	sha1:5+Y986WWUvM+W6TKaWwnU3A9qwQ=
X-BSB-Auth: 1.498f6f0862c2fb9c83a4.20240716123533BST.87sew9in7e.fsf@bsb.me.uk
Bytes: 1847

HenHanna <HenHanna@devnull.tb> writes:

> Python says:  (1 Combination 2) = 0
>         Ok... It's Impossible (to do).
>              ------- is there a Better explanation?

JB has given you an explanation to do with generalising the algebraic
equations, but there are also simple explanations from first principles.

> (5 Combination 0) = 1  <---- This is explained by  Comb(5,0)=Comb(5,5)
>                                      in general:   Comb(N,r)=Comb(N,N-r)

I'll write |[5,0]| for this.  In general |[n,m]| is the number of
m-element subsets of a typical set of n elements.  So how many
zero-element subsets of such a set are there?  Just 1.  |[n,0]| = 1.

And how many 2-element subsets of a 1-element set are there?  0, so
|[1,2]| = 0.

-- 
Ben.