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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A101400 a(n) = a(n-1) + 2*a(n-2) + a(n-3) - a(n-4). 5
1, 2, 5, 10, 21, 44, 91, 190, 395, 822, 1711, 3560, 7409, 15418, 32085, 66770, 138949, 289156, 601739, 1252230, 2605915, 5422958, 11285279, 23484880, 48872481, 101704562, 211649125, 440445850, 916576181, 1907412444, 3969361531 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

Lengths of successive words (starting with a) under the substitution: {a -> ab, b -> aac, c -> d, d -> b}.

LINKS

Harvey P. Dale, Table of n, a(n) for n = 0..1000

Index entries for linear recurrences with constant coefficients, signature (1,2,1,-1).

EXAMPLE

a(0) = 1, a(1) = 2, a(2) = 5, a(3) = 10, a(4) = 21, a(5) = 44

MATHEMATICA

a[0] = 1; a[1] = 2; a[2] = 5; a[3] = 10; a[n_] := a[n] = a[n - 1] + 2a[n - 2] + a[n - 3] - a[n - 4]; Table[ a[n], {n, 0, 30}] (* Robert G. Wilson v, Jan 15 2005 *)

LinearRecurrence[{1, 2, 1, -1}, {1, 2, 5, 10}, 40] (* Harvey P. Dale, Oct 24 2017 *)

CROSSREFS

Cf. A092886, A105309.

Sequence in context: A101510 A066819 A114279 * A131403 A264544 A052540

Adjacent sequences:  A101397 A101398 A101399 * A101401 A101402 A101403

KEYWORD

nonn,easy

AUTHOR

Jeroen F.J. Laros, Jan 15 2005

EXTENSIONS

More terms from Robert G. Wilson v, Jan 15 2005

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified February 23 07:28 EST 2018. Contains 299473 sequences. (Running on oeis4.)