Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A145112
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A145112 Numbers of length n binary words with fewer than 4 0-digits between any pair of consecutive 1-digits. +0
2
1, 2, 4, 8, 16, 32, 63, 123, 239, 463, 895, 1728, 3334, 6430, 12398, 23902, 46077, 88821, 171213, 330029, 636157, 1226238, 2363656, 4556100, 8782172, 16928188, 32630139, 62896623, 121237147, 233692123, 450456059, 868281980, 1673667338 (list; graph; listen)
OFFSET

0,2

FORMULA

G.f.: (1-x+x^5)/(1-3*x+2*x^2+x^5-x^6).

EXAMPLE

a(6) = 63 = 2^6-1, because 100001 is the only binary word of length 6 with not less than 4 0-digits between any pair of consecutive 1-digits.

MAPLE

a:= n-> (Matrix([[2, 1$5]]). Matrix(6, (i, j)-> if i=j-1 then 1 elif j=1 then [3, -2, 0$2, -1, 1][i] else 0 fi)^n)[1, 2]: seq (a(n), n=0..35);

CROSSREFS

4th column of A145111.

Sequence in context: A052396 A051040 A006261 this_sequence A062259 A001949 A001592

Adjacent sequences: A145109 A145110 A145111 this_sequence A145113 A145114 A145115

KEYWORD

nonn

AUTHOR

Alois P. Heinz (heinz(AT)hs-heilbronn.de), Oct 02 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 14:25 EST 2009. Contains 167438 sequences.


AT&T Labs Research