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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A015540 a(n) = 5*a(n-1) + 6*a(n-2). 9
0, 1, 5, 31, 185, 1111, 6665, 39991, 239945, 1439671, 8638025, 51828151, 310968905, 1865813431, 11194880585, 67169283511, 403015701065, 2418094206391, 14508565238345, 87051391430071, 522308348580425 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

COMMENTS

Number of walks of length n between any two distinct vertices of the complete graph K_7. Example: a(2)=5 because the walks of length 2 between the vertices A and B of the complete graph ABCDEFG are: ACB, ADB, AEB, AFB and AGB. - Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 01 2004

General form: k=6^n-k. Also: A001045, A078008, A097073, A115341, A015518, A054878, A015521, A109499, A015531, A109500 [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 11 2008]

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..1000

FORMULA

a(n) = 5*a(n-1) + 6*a(n-2).

a(n)=6^n/7-(-1)^n/7. G.f.: x/((1-6*x)*(1+x)). E.g.f.: (exp(6*x)-exp(-x))/7. - Paul Barry (pbarry(AT)wit.ie), Apr 20 2003

a(n)=6^(n-1)-a(n-1). - Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 01 2004

a(n+1)=a(n)=sum{k=0..n, binomial(n-k, k)*5^(n-2*k)*6^k} - Paul Barry (pbarry(AT)wit.ie), Jul 29 2004

a(n)=round(6^n/7). [From Mircea Merca, Dec 28 2010]

MAPLE

seq(round(6^n/7), n=0..25) [From Mircea Merca, Dec 28 2010]

MATHEMATICA

k=0; lst={k}; Do[k=6^n-k; AppendTo[lst, k], {n, 0, 5!}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 11 2008]

PROG

(Sage) [lucas_number1(n, 5, -6) for n in xrange(0, 21)]# [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Apr 24 2009]

(MAGMA) [Round(6^n/7): n in [0..30]]; // Vincenzo Librandi, Jun 24 2011

CROSSREFS

Partial sums are in A033116. Cf. A014987.

Cf. A001045, A078008, A097073, A115341, A015518, A054878, A015521, A109499, A015531, A109500 [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 11 2008]

Sequence in context: A137626 A202753 A057426 * A014987 A108079 A164038

Adjacent sequences:  A015537 A015538 A015539 * A015541 A015542 A015543

KEYWORD

nonn,easy

AUTHOR

Olivier Gerard (olivier.gerard(AT)gmail.com)

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 23 08:31 EST 2012. Contains 206628 sequences.