login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A043719 Numbers whose base-16 representation has an odd number of runs. 2

%I #10 Jun 18 2021 23:03:56

%S 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,17,34,51,68,85,102,119,136,153,

%T 170,187,204,221,238,255,257,258,259,260,261,262,263,264,265,266,267,

%U 268,269,270,271,273,288,289,291,292,293,294,295

%N Numbers whose base-16 representation has an odd number of runs.

%o (Python)

%o from itertools import groupby

%o def ok(n): return len(list(g for k, g in groupby(hex(n)[2:])))%2 == 1

%o print(list(filter(ok, range(1, 296)))) # _Michael S. Branicky_, Jun 18 2021

%K nonn,base

%O 1,2

%A _Clark Kimberling_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 05:35 EDT 2024. Contains 371697 sequences. (Running on oeis4.)