login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A136480 Number of trailing equal digits in binary representation of n. 2
1, 1, 1, 2, 2, 1, 1, 3, 3, 1, 1, 2, 2, 1, 1, 4, 4, 1, 1, 2, 2, 1, 1, 3, 3, 1, 1, 2, 2, 1, 1, 5, 5, 1, 1, 2, 2, 1, 1, 3, 3, 1, 1, 2, 2, 1, 1, 4, 4, 1, 1, 2, 2, 1, 1, 3, 3, 1, 1, 2, 2, 1, 1, 6, 6, 1, 1, 2, 2, 1, 1, 3, 3, 1, 1, 2, 2, 1, 1, 4, 4, 1, 1, 2, 2, 1, 1, 3, 3, 1, 1, 2, 2, 1, 1, 5, 5, 1, 1, 2, 2, 1, 1, 3, 3 (list; graph; refs; listen; history; internal format)
OFFSET

0,4

COMMENTS

a(even) = number of trailing binary zeros;

a(odd) = number of trailing binary ones;

a(n) = A050603(n-1) for n>0;

a(2*n + n mod 2) = a(n) + 1.

LINKS

Index entries for sequences related to binary expansion of n

FORMULA

For n>0: a(n) = A007814(n + n mod 2).

MATHEMATICA

Length[Last[Split[IntegerDigits[#, 2]]]]&/@Range[0, 140]  (* From Harvey P. Dale, Mar 31 2011 *)

CROSSREFS

Sequence in context: A064894 A003638 A094267 * A050603 A037162 A027358

Adjacent sequences:  A136477 A136478 A136479 * A136481 A136482 A136483

KEYWORD

nonn,base

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Dec 31 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 14:30 EST 2012. Contains 205814 sequences.