Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A122954
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A122954 a(1) = 1. a(n) = number of earlier terms which, when written in binary, are substrings of binary n. +0
2
1, 1, 2, 3, 3, 5, 4, 4, 5, 5, 8, 7, 8, 6, 5, 7, 7, 5, 7, 10, 9, 11, 15, 10, 9, 13, 13, 12, 17, 11, 9, 7, 7, 8, 11, 8, 13, 11, 16, 16, 15, 10, 17, 18, 18, 21, 22, 15, 15, 14, 12, 19, 18, 19, 24, 22, 20, 24, 25, 21, 25, 17, 14, 11, 11, 11, 13, 12, 17, 16, 21, 15, 11, 19, 26, 17, 23, 22, 24 (list; graph; listen)
OFFSET

1,3

COMMENT

First occurrence of k: 1, 3, 4, 7, 6, 14, 12, 11, 21, 20, 22, 28, 26, 50, 23, 39, 29, 44, 52, 57, 46, 47, 77, 55, 59, ...,.

LINKS

Leroy Quet, Home Page (listed in lieu of email address)

EXAMPLE

Binary a(1) = 1, binary a(2) = 1, binary a(3) = 10, binary a(7) = 100 and binary a(8) = 100 are all substrings of binary 9 = 1001. So a(9) = 5.

MATHEMATICA

f[ s_ ] := Append[ s, Length@ Select[ s, StringPosition[ ToString@ FromDigits@ IntegerDigits[ Length@s + 1, 2 ], ToString@ FromDigits@ IntegerDigits[ #, 2 ] ] != {} & ] ]; Nest[ f, {1}, 79 ] (* Robert G. Wilson v *)

CROSSREFS

Sequence in context: A056149 A167494 A091238 this_sequence A126571 A080391 A116922

Adjacent sequences: A122951 A122952 A122953 this_sequence A122955 A122956 A122957

KEYWORD

nonn

AUTHOR

Leroy Quet Oct 25 2006

EXTENSIONS

More terms from Robert G. Wilson v Nov 01 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research