| Deutsch English Français Italiano |
|
<u5mh4s$le09$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!news.eternal-september.org!.POSTED!not-for-mail From: Python <python@invalid.org> Newsgroups: fr.sci.maths Subject: =?UTF-8?B?UmU6IFLDqXNvdWRyZSBjZXR0ZSDDqWdhbGl0w6k=?= Date: Tue, 6 Jun 2023 07:45:00 +0200 Organization: A noiseless patient Spider Lines: 48 Message-ID: <u5mh4s$le09$1@dont-email.me> References: <zF0ezWzZVwyFPc1y2dkU7tlBpJg@jntp> <u5mb42$ksj0$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 6 Jun 2023 05:45:00 -0000 (UTC) Injection-Info: dont-email.me; posting-host="79fc38b8d42768376418740176e2cd1a"; logging-data="702473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wIXfyONUIrO/JTxsetu9A" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Cancel-Lock: sha1:DPIP5Mjsm4fhdZFefDlb84r6zOo= In-Reply-To: <u5mb42$ksj0$1@dont-email.me> Content-Language: en-US, fr Bytes: 2108 Le 06/06/2023 à 06:02, Dominique a écrit : > Le 05/06/2023 à 21:20, Richard Hachel a écrit : >> On pose : >> >> (1/x)+(1/y)=(1/10) >> >> x et y entiers naturels. >> >> Quelle(s) possibilité(s)? >> >> R.H. > > En force brute (Python3) : > > for x in range (1,100000): > for y in range(1,100000): > if 1/x+1/y==.1: > print(x,y) > > > je ne trouve que 3 couples (et leurs miroirs, bien sûr) : > > 11 110 > 15 30 > 20 20 > > qui répondent exactement à la solution 1/x+1/y=1/10. Les autres > solutions que donne Michel ne sont pas égales à 1/10 ! > https://docs.oracle.com/cd/E19957-01/800-7895/800-7895.pdf Python 3.11.2 (main, Feb 12 2023, 00:48:52) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> 1/10 + 2/10 == 3/10 False Si tu le fais en Python il vaut mieux utiliser le module fractions... (11, 110) (35, 14) (30, 15) (20, 20) (12, 60) (+ symétriques)