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!)
A268272 Negabinary evil numbers (see comment). 6
0, 2, 5, 7, 8, 10, 13, 14, 17, 19, 20, 22, 25, 27, 28, 31, 32, 34, 37, 39, 40, 42, 45, 46, 49, 51, 52, 55, 56, 58, 61, 62, 65, 67, 68, 70, 73, 75, 76, 79, 80, 82, 85, 87, 88, 90, 93, 94, 97, 99, 100, 102, 105, 107, 108, 111, 112, 114, 117, 118, 121, 123, 124 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Recall that a number n >= 0 is defined as an evil number (A001969) if its binary expansion contains an even number of 1's, or such n that Thue-Morse sequence A010060(n)=0.
Sequence A269027 is essentially Thue-Morse sequence in "negabinary", i.e., in base -2. So a number n for which A269027(n)=0 it is natural to call "negabinary evil".
LINKS
Vladimir Shevelev, Two analogs of Thue-Morse sequence, arXiv:1603.04434 [math.NT], 2016.
Eric Weisstein's World of Mathematics, Negabinary
MATHEMATICA
b = 2; Select[Range[0, 125], Function[k, EvenQ@ Total@ Rest@ Reverse@ Mod[NestWhileList[(# - Mod[#, b])/-b &, k, # != 0 &], b]]] (* Michael De Vlieger, Mar 03 2016, after Robert Lozyniak at A039724 *)
CROSSREFS
Sequence in context: A184793 A343301 A034028 * A102700 A095371 A047481
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev, Mar 02 2016
EXTENSIONS
More terms from Peter J. C. Moses, Mar 02 2016
STATUS
approved

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 March 28 16:34 EDT 2024. Contains 371254 sequences. (Running on oeis4.)