The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A050400 Number of independent sets of vertices in P_3 X C_n (n > 2). 2
5, 1, 17, 43, 181, 621, 2309, 8303, 30277, 109753, 398857, 1447931, 5258725, 19095285, 69344061, 251811903, 914429445, 3320635025, 12058502657, 43789003563, 159014593621, 577442573597, 2096914206261, 7614694850543, 27651860345029, 100414447219721, 364643142303353 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(n) = a(n-1) + 8*a(n-2) + 6*a(n-3) - a(n-4) - a(n-5).
G.f.: (5-4*x-24*x^2-12*x^3+x^4)/((1+x)*(1-2*x-6*x^2+x^4)). - Maksym Voznyy (voznyy(AT)mail.ru), Aug 12 2009
MAPLE
seq(coeff(series((5-4*x-24*x^2-12*x^3+x^4)/((1+x)*(1-2*x-6*x^2+x^4)), x, n+1), x, n), n = 0..30); # G. C. Greubel, Oct 30 2019
MATHEMATICA
CoefficientList[Series[(5-4*x-24*x^2-12*x^3+x^4)/((1+x)*(1-2*x-6*x^2+ x^4)), {x, 0, 30}], x] (* Vincenzo Librandi, May 11 2017 *)
PROG
(Magma) I:=[5, 1, 17, 43, 181]; [n le 5 select I[n] else Self(n-1) + 8*Self(n-2) + 6*Self(n-3) - Self(n-4) - Self(n-5): n in [1..30]]; // Vincenzo Librandi, May 11 2017
(PARI) my(x='x+O('x^30)); Vec((5-4*x-24*x^2-12*x^3+x^4)/((1+x)*(1-2*x-6*x^2+x^4))) \\ G. C. Greubel, Oct 30 2019
(Sage)
def A077952_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P((5-4*x-24*x^2-12*x^3+x^4)/((1+x)*(1-2*x-6*x^2+x^4))).list()
A077952_list(30) # G. C. Greubel, Oct 30 2019
(GAP) a:=[5, 1, 17, 43, 181];; for n in [6..30] do a[n]:=a[n-1]+8*a[n-2] +6*a[n-3] -a[n-4]-a[n-5]; od; a; # G. C. Greubel, Oct 30 2019
CROSSREFS
Column 3 of A286513.
Sequence in context: A058352 A121755 A104174 * A326121 A008971 A151335
KEYWORD
easy,nonn
AUTHOR
Stephen G Penrice, Dec 21 1999
EXTENSIONS
More terms from Michael Lugo (mlugo(AT)thelabelguy.com), Dec 22 1999
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 19:55 EDT 2024. Contains 372522 sequences. (Running on oeis4.)