Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A094287
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A094287 Number of (s(0), s(1), ..., s(n)) such that 0 < s(i) < 7 and |s(i) - s(i-1)| <= 1 for i = 1,2,....,n, s(0) = 1, s(n) = 1. +0
1
1, 2, 4, 9, 21, 51, 127, 323, 835, 2188, 5798, 15510, 41822, 113531, 309937, 850118, 2340918, 6466953, 17913087, 49726649, 138287113, 385126811, 1073832695, 2996974774, 8370739326, 23394528640, 65415732100, 182989086965 (list; graph; listen)
OFFSET

1,2

COMMENT

In general a(n)=2/m*Sum_{k=1..m} Sin(Pi*k/m)^2(1+2Cos(Pi*k/m))^n counts the (s(0), s(1), ..., s(n)) such that 0 < s(i) < m and |s(i) - s(i-1)| <= 1 for i = 1,2,....,n, s(0) = 1, s(n) = 1. Here is m=7.

FORMULA

a(n)=(2/7)*Sum_{k=1..6} Sin(Pi*k/7)^2(1+2Cos(Pi*k/7))^n

MATHEMATICA

f[n_] := FullSimplify[ TrigToExp[(2/7)*Sum[ Sin[Pi*k/7]^2(1 + 2Cos[Pi*k/7])^n, {k, 1, 6}]]]; Table[ f[n], {n, 28}] (from Robert G. Wilson v Jun 18 2004)

CROSSREFS

Sequence in context: A051529 A005207 A094286 this_sequence A094288 A166587 A086246

Adjacent sequences: A094284 A094285 A094286 this_sequence A094288 A094289 A094290

KEYWORD

easy,nonn

AUTHOR

Herbert Kociemba (kociemba(AT)t-online.de), Jun 02 2004

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 15 00:47 EST 2009. Contains 170825 sequences.


AT&T Labs Research