login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A101168 Lengths of successive words (starting with a) under the substitution: {a -> aab, b -> aac, c -> a}. 1
1, 3, 9, 25, 71, 201, 569, 1611, 4561, 12913, 36559, 103505, 293041, 829651, 2348889, 6650121, 18827671, 53304473, 150914409, 427265435, 1209664161, 3424773601, 9696140959, 27451493281, 77720042081, 220039211683, 622970000809, 1763738467065, 4993456147431 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Table of n, a(n) for n=0..28.

FORMULA

a(n) = 2*a(n-1) + 2*a(n-2) + a(n-3).

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

a(n-1) = sum(k=1..n, sum(m=0..n-k, (sum(j=0..k, binomial(j, n-m-3*k+2*j) *binomial(k, j))) *sum(i=ceiling(m/2)..m, binomial(i, m-i)*binomial(k+i-1, k-1)))). - Vladimir Kruchinin, May 05 2011

EXAMPLE

a => aab => aabaabaac => aabaabaacaabaabaacaabaaba, thus a(0) = 1, a(1) = 3, a(2) = 9, a(3) = 25.

MAPLE

a:= n-> (<<0|1|0>, <0|0|1>, <1|2|2>>^n. <<1, 3, 9>>)[1, 1]:

seq(a(n), n=0..30);  # Alois P. Heinz, May 06 2011

PROG

(Maxima) a(n):=b(n+1);

b(n):= sum(sum((sum(binomial(j, n+1-m-3*k+2*j) *binomial(k, j), j, 0, k)) *sum(binomial(i, m-i) *binomial(k+i-1, k-1), i, ceiling(m/2), m), m, 0, n+1-k), k, 1, n+1); /* Vladimir Kruchinin, May 05 2011 */

CROSSREFS

Cf. A101399, A101400.

Sequence in context: A309105 A101197 A233828 * A211287 A211290 A211299

Adjacent sequences:  A101165 A101166 A101167 * A101169 A101170 A101171

KEYWORD

easy,nonn

AUTHOR

Jeroen F.J. Laros, Jan 22 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
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 3 13:39 EDT 2020. Contains 336198 sequences. (Running on oeis4.)