This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A179854 Number of 0's (mod 3) in the binary expansion of n. 0
 0, 1, 0, 2, 1, 1, 0, 0, 2, 2, 1, 2, 1, 1, 0, 1, 0, 0, 2, 0, 2, 2, 1, 0, 2, 2, 1, 2, 1, 1, 0, 2, 1, 1, 0, 1, 0, 0, 2, 1, 0, 0, 2, 0, 2, 2, 1, 1, 0, 0, 2, 0, 2, 2, 1, 0, 2, 2, 1, 2, 1, 1, 0, 0, 2, 2, 1, 2, 1, 1, 0, 2, 1, 1, 0, 1, 0, 0, 2, 2, 1, 1, 0, 1, 0, 0, 2, 1, 0, 0, 2, 0, 2, 2, 1, 2, 1, 1, 0, 1, 0, 0, 2, 1, 0, 0, 2, 0, 2, 2, 1, 1, 0, 0, 2, 0, 2, 2, 1, 0 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,4 COMMENTS A ternary analog of A059448. Offset is 1 to avoid the ambiguity at n=0. Inspired by Chapter 1 of Allouche and Shallit. REFERENCES J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003. LINKS MAPLE s1:=[]; for n from 0 to 200 do t1:=convert(n, base, 2); t2:=subs(1=NULL, t1); s1:=[op(s1), nops(t2) mod 3]; od: s1; CROSSREFS Cf. A059448. Sequence in context: A157044 A182748 A025879 * A250622 A212551 A125753 Adjacent sequences:  A179851 A179852 A179853 * A179855 A179856 A179857 KEYWORD nonn AUTHOR N. J. A. Sloane, Jan 11 2011 STATUS approved

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

Last modified July 16 12:19 EDT 2019. Contains 325079 sequences. (Running on oeis4.)