Deutsch English Français Italiano |
<v71e3t$a766$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: HenHanna <HenHanna@devnull.tb> Newsgroups: comp.lang.python,sci.math,sci.lang Subject: (1 Combination 2) = 0 -- Better explanation? Date: Sun, 14 Jul 2024 13:57:32 -0700 Organization: A noiseless patient Spider Lines: 20 Message-ID: <v71e3t$a766$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 14 Jul 2024 22:57:33 +0200 (CEST) Injection-Info: dont-email.me; posting-host="0e7ae03f0cc37093a252887daea110a9"; logging-data="335046"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nvyw6oonwIEZ0LPlO8xpAn5J4zFDG2KQ=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:uWzzGEK3dRlJh1+xQbtci/433qc= Content-Language: en-US Bytes: 1388 Python says: (1 Combination 2) = 0 Ok... It's Impossible (to do). ------- is there a Better explanation? (5 Combination 0) = 1 <---- This is explained by Comb(5,0)=Comb(5,5) in general: Comb(N,r)=Comb(N,N-r) _______________________________________ from math import comb for i in range(6): print( comb(5,i) ) print( comb(1,2) )