Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A054668
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A054668 Number of distinct non-extendable sequences X={x(1),x(2),...,x(k)} where x(1)=1, the x(i)'s are distinct elements of {1,...,n} with |x(i)-x(i+1)|=1 or 2, for i=1,2,...,k. +0
3
1, 2, 4, 8, 16, 30, 56, 104, 192, 354, 652, 1200, 2208, 4062, 7472, 13744, 25280, 46498, 85524, 157304, 289328, 532158, 978792 (list; graph; listen)
OFFSET

1,2

COMMENT

Superseeker suggests the G.F. ((x^4)+1)/(x^4-2x+1). If the sequences X, in the enumeration of a(n), are required to contain n then sequence A000073 (tribonacci numbers} is obtained.

FORMULA

a(1) = 1, a(n) = term (4,2) in the 4x4 matrix [1,1,0,0; 1,0,1,0; 1,0,0,0; 2,0,0,1]^n (n>1). - Alois P. Heinz (heinz(AT)hs-heilbronn.de), Jul 24 2008

EXAMPLE

a(4)=4, since the allowable sequences are {1,2,3,4}, {1,2,4,3}, {1,3,2,4} and {1,3,4,2}, whereas {1,4,2,3} and {1,4,3,2} violate the spacing condition.

MAPLE

a := n -> if n=1 then 1 else (Matrix ([[1, 1, 0, 0], [1, 0, 1, 0], [1, 0, 0, 0], [2, 0, 0, 1]])^n)[4, 2] fi; seq (a(n), n=1..50); - Alois P. Heinz (heinz(AT)hs-heilbronn.de), Jul 24 2008

CROSSREFS

Cf. A053623.

Sequence in context: A005305 A125548 A164229 this_sequence A164225 A164204 A164209

Adjacent sequences: A054665 A054666 A054667 this_sequence A054669 A054670 A054671

KEYWORD

nonn

AUTHOR

John W. Layman (layman(AT)math.vt.edu), Apr 18 2000

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 December 5 08:23 EST 2009. Contains 170348 sequences.


AT&T Labs Research