Deutsch   English   Français   Italiano  
<633d129e$0$31542$426a74cc@news.free.fr>

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

Path: ...!news.mixmin.net!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp1-1.free.fr!not-for-mail
Date: Wed, 5 Oct 2022 07:14:06 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101
 Thunderbird/102.3.1
Subject: Re: Suite logique
Newsgroups: fr.sci.maths
References: <i9sELUrF0ppldVVnmbqOe0kFJ5M@jntp>
 <thctgi$1hsu$1@cabale.usenet-fr.net>
Content-Language: fr
From: ast <ast@invalid>
In-Reply-To: <thctgi$1hsu$1@cabale.usenet-fr.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 32
Message-ID: <633d129e$0$31542$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 05 Oct 2022 07:14:06 CEST
NNTP-Posting-Host: 91.170.32.5
X-Trace: 1664946846 news-1.free.fr 31542 91.170.32.5:4084
X-Complaints-To: abuse@proxad.net
Bytes: 1493

Le 02/10/2022 à 22:49, Olivier Miakinen a écrit :
> Le 02/10/2022 22:06, Julien Arlandis a écrit :
>> Qui parviendra à trouver le sens de la suite logique suivante :
>>
>> 0, 1, 3, 2, 6, 7, 5, 4, 12, 13, 15, 14, 10, 11, 9, 8, 24, ...
> 
> Oh, les suites logiques, on peut toujours y trouver Cinquante Nuances !
> 

 >>> for n in range(17):
	m = n^(n>>1)
	print(f"{m:2d} {m:05b}")

	
  0 00000
  1 00001
  3 00011
  2 00010
  6 00110
  7 00111
  5 00101
  4 00100
12 01100
13 01101
15 01111
14 01110
10 01010
11 01011
  9 01001
  8 01000
24 11000