Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A143220
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A143220 a(0)=1. For n >=1, a(n) = 1 if the binary representation of n occurs at least once in the concatenation of (a(0),a(1),...,a(n-1)). a(n) = 0 otherwise. +0
3
1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0 (list; graph; listen)
OFFSET

0,1

LINKS

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

EXAMPLE

The binary representation of 21 is 10101. This occurs in the concatenation of terms a(0) through a(20) like so: 1101011000111(10101)001. So a(21) = 1.

MATHEMATICA

f[l_List]:=Append[l, Boole[StringPosition[ToString[FromDigits[l]], ToString[FromDigits[IntegerDigits[Length[l], 2]]]]!={}]]; Nest[f, {1}, 125] [From Ray Chandler (rayjchandler(AT)sbcglobal.net), Nov 09 2008]

CROSSREFS

Cf. A118268, A143221, A143222.

Sequence in context: A104120 A108336 A118268 this_sequence A136669 A103842 A065535

Adjacent sequences: A143217 A143218 A143219 this_sequence A143221 A143222 A143223

KEYWORD

base,nonn

AUTHOR

Leroy Quet, Jul 30 2008

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Nov 09 2008

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 November 24 23:16 EST 2009. Contains 167481 sequences.


AT&T Labs Research