Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125145
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125145 a(n) = 3a(n-1) + 3a(n-2). a(0) = 1, a(1) = 4. +0
5
1, 4, 15, 57, 216, 819, 3105, 11772, 44631, 169209, 641520, 2432187, 9221121, 34959924, 132543135, 502509177, 1905156936, 7222998339, 27384465825, 103822392492, 393620574951, 1492328902329, 5657848431840, 21450532002507 (list; graph; listen)
OFFSET

0,2

COMMENT

Number of aa-avoiding words of length n on the alphabet {a,b,c,d}.

LINKS

Index entries for sequences related to linear recurrences with constant coefficients

Joerg Arndt, Fxtbook

Tanya Khovanova, Recursive Sequences

FORMULA

G.f.=(1+z)/(1-3z-3z^2). - Emeric Deutsch (deutsch(AT)duke.poly.edu), Feb 27 2007

a(n) = (5*sqrt(21)/42 + 1/2)*(3/2 + sqrt(21)/2))^(n-1) + (-5*sqrt(21)/42 + 1/2)*(3/2 - sqrt(21)/2))^(n-1). - Antonio A. Olivares (olivares14031(AT)yahoo.com), Mar 20 2008

MAPLE

a[0]:=1: a[1]:=4: for n from 2 to 27 do a[n]:=3*a[n-1]+3*a[n-2] od: seq(a[n], n=0..27); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Feb 27 2007

PROGRAM

#include <iostream.h> #include <stdlib.h> #include <math.h> int main(int argc, char *argv[]) { int i; // counter for for loop double j; // for (i=1; i < 12; i++) // change 9 to whatever number you want if desired { j = ( 5.0*sqrt(21.0)/42 + 1.0/2.0)*pow((3.0/2.0 + sqrt(21)/2), (i-1))+ (-5.0*sqrt(21.0)/42 + 1.0/2.0)*pow((3.0/2.0 - sqrt(21)/2), (i-1)) ; // cout << i << ' ' << j << " "; } return EXIT_SUCCESS; } - Antonio A. Olivares (olivares14031(AT)yahoo.com), Mar 20 2008

CROSSREFS

Cf. A028859 = a(n+2) = 2 a(n+1) + 2 a(n); A086347 = On a 3 X 3 board, number of n-move routes of chess king ending at a given side cell. a(n) = 4a(n-1) + 4a(n-2).

Cf. A128235.

Sequence in context: A131497 A077823 A047108 this_sequence A095930 A026850 A109642

Adjacent sequences: A125142 A125143 A125144 this_sequence A125146 A125147 A125148

KEYWORD

nonn

AUTHOR

Tanya Khovanova (tanyakh(AT)yahoo.com), Jan 11 2007

EXTENSIONS

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu), Feb 27 2007

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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research