A008588 Nonnegative multiples of 6.
0, 6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 102, 108, 114, 120, 126, 132, 138, 144, 150, 156, 162, 168, 174, 180, 186, 192, 198, 204, 210, 216, 222, 228, 234, 240, 246, 252, 258, 264, 270, 276, 282, 288, 294, 300, 306, 312, 318, 324, 330, 336, 342, 348
Offset: 0
References
- John H. Conway and Richard K. Guy, The Book of Numbers, New York: Springer-Verlag, 1996. See p. 81.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Tanya Khovanova, Recursive Sequences
- INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 318
- Index entries for linear recurrences with constant coefficients, signature (2,-1).
Crossrefs
Programs
-
Haskell
a008588 = (* 6) a008588_list = [0, 6 ..] -- Reinhard Zumkeller, Nov 10 2013
-
Magma
[6*n: n in [0..60] ]; // Vincenzo Librandi, Jul 16 2011
-
Maple
[ seq(6*n,n=0..45) ];
-
Mathematica
Range[0, 500, 6] (* Vladimir Joseph Stephan Orlovsky, May 26 2011 *) NestList[6+#&,0,60] (* Harvey P. Dale, Nov 17 2024 *)
-
Maxima
makelist(6*n,n,0,30); /* Martin Ettl, Nov 12 2012 */
-
PARI
a(n)=6*n \\ Charles R Greathouse IV, Feb 08 2012
-
Sage
[6*n for n in range(59)] # Stefano Spezia, Mar 09 2025
Formula
From Vincenzo Librandi, Dec 24 2010: (Start)
a(n) = 6*n = 2*a(n-1) - a(n-2).
G.f.: 6*x/(1-x)^2. (End)
a(n) = Sum_{k>=0} A030308(n,k)*6*2^k. - Philippe Deléham, Oct 24 2011
a(n) = Sum_{k=2n-1..2n+1} k. - Wesley Ivan Hurt, Nov 22 2015
From Ilya Gutkovskiy, Aug 12 2016: (Start)
E.g.f.: 6*x*exp(x).
a(n) = 6 * A001477(n). - David A. Corneth, Aug 12 2016
Comments