login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108758 a(n)=2*a(n-1)-a(n-4)+a(n-5) with a(-2)=a(-1)=a(0)=1, a(1)=2, a(2)=4, a(3)=7. 0
1, 1, 1, 2, 4, 7, 14, 27, 52, 101, 195, 377, 729, 1409, 2724, 5266, 10180, 19680, 38045, 73548, 142182, 274864, 531363, 1027223, 1985812, 3838942, 7421385, 14346910, 27735231, 53617332, 103652221, 200378917, 387369513, 748856925, 1447678961 (list; graph; refs; listen; history; internal format)
OFFSET

-2,4

COMMENTS

An unbiased coin is tossed n times and the resulting sequence of heads and tails is written linearly. Number of strings out of 2^n posiible strings, having no three consecutive heads (HHH's) is given by the above sequence (with suitable offset).

Starting (1, 1, 2, 4, 7,...) = INVERT transform of (1, 1, 0, 1, 1, 1, 1,...). [From Gary W. Adamson (qntmpkt(AT)yahoo.com), Apr 27 2009]

FORMULA

G.f.: x*(1-x)/(1-2*x+x^4-x^5)+1 [Vladimir Kruchinin kru(AT)ie.tusur.ru, May 11 2011]

MATHEMATICA

a[n_] := a[n] = 2a[n - 1] - a[n - 4] + a[n - 5]; a[ -2] = a[ -1] = a[0] = 1; a[1] = 2; a[2] = 4; a[3] = 7; Table[ a[n], {n, 0, 32}] (from Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 25 2005)

CROSSREFS

Sequence in context: A123196 A079968 A001631 * A018085 A167751 A190822

Adjacent sequences:  A108755 A108756 A108757 * A108759 A108760 A108761

KEYWORD

nonn,easy

AUTHOR

Mrs. J. P. Shiwalkar (jyotishiwalkar(AT)rediffmail.com) and M. N. Deshpande (dpratap_ngp(AT)sancharnet.in), Jun 24 2005

EXTENSIONS

Edited by Robert G. Wilson v (rgwv(AT)rgwv.com), Jun 25 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 20:38 EST 2012. Contains 205663 sequences.