login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A297770 Number of distinct runs in base-2 digits of n. 29
1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 3, 2, 3, 2, 1, 2, 2, 3, 3, 3, 2, 3, 3, 2, 3, 3, 2, 2, 3, 2, 1, 2, 2, 3, 3, 2, 3, 4, 3, 3, 3, 2, 3, 4, 3, 3, 3, 2, 3, 4, 2, 4, 3, 2, 3, 2, 3, 3, 3, 2, 3, 2, 1, 2, 2, 3, 3, 3, 3, 4, 3, 3, 2, 3, 4, 3, 4, 4, 3, 3, 3, 3, 4, 3, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Every positive integers occurs infinitely many times.

***

Guide to related sequences:

Base b      # runs    # distinct runs

   2        A005811       A297770

   3        A043555       A297771

   4        A043556       A297772

   5        A043557       A297773

   6        A043558       A297774

   7        A043559       A297775

   8        A043560       A297776

   9        A043561       A297777

  10        A043562       A297778

  11        A043563       A297779

  12        A043564       A297780

  13        A043565       A297781

  14        A043566       A297782

  15        A043567       A297783

  16        A043568       A297784

LINKS

Clark Kimberling, Table of n, a(n) for n = 1..10000

EXAMPLE

27 in base-2: 1,1,0,1,1; three runs, of which 2 are distinct:  0 and 11, so that a(27) = 2.

MATHEMATICA

b = 2; s[n_] := Length[Union[Split[IntegerDigits[n, b]]]]

Table[s[n], {n, 1, 200}]

CROSSREFS

Cf. A005811 (number of runs, not necessarily distinct).

Sequence in context: A323406 A160520 A235708 * A330617 A145866 A103318

Adjacent sequences:  A297767 A297768 A297769 * A297771 A297772 A297773

KEYWORD

nonn,base,easy

AUTHOR

Clark Kimberling, Jan 26 2018

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 15 16:02 EDT 2021. Contains 343920 sequences. (Running on oeis4.)