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!)
A318927 Take the binary expansion of n, starting with the most significant bit, and concatenate the lengths of the runs. 2
1, 11, 2, 12, 111, 21, 3, 13, 121, 1111, 112, 22, 211, 31, 4, 14, 131, 1211, 122, 1112, 11111, 1121, 113, 23, 221, 2111, 212, 32, 311, 41, 5, 15, 141, 1311, 132, 1212, 12111, 1221, 123, 1113 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Obviously this compressed notation is useful only for n < 1023. A101211 is a version which works for all n.

LINKS

Table of n, a(n) for n=1..40.

EXAMPLE

n, binary, run lengths, -> a(n)

1, [1], [1] -> 1

2, [0, 1], [1, 1] -> 11

3, [1, 1], [2] -> 2

4, [1, 0, 0], [1, 2] -> 12

5, [1, 0, 1], [1, 1, 1] -> 111

6, [1, 1, 0], [2, 1] -> 21

7, [1, 1, 1], [3] -> 3

...

CROSSREFS

Cf. A227736, A318926, A101211.

Sequence in context: A226110 A323484 A330521 * A267320 A303785 A262369

Adjacent sequences:  A318924 A318925 A318926 * A318928 A318929 A318930

KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane, Sep 09 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 April 5 00:43 EDT 2020. Contains 333238 sequences. (Running on oeis4.)