A165988 First trisection of A022998.
0, 3, 12, 9, 24, 15, 36, 21, 48, 27, 60, 33, 72, 39, 84, 45, 96, 51, 108, 57, 120, 63, 132, 69, 144, 75, 156, 81, 168, 87, 180, 93, 192, 99, 204, 105, 216, 111, 228, 117, 240, 123, 252, 129, 264, 135, 276, 141, 288, 147, 300, 153, 312, 159, 324, 165, 336, 171, 348, 177
Offset: 0
Links
- G. C. Greubel, Table of n, a(n) for n = 0..5000
- Index entries for linear recurrences with constant coefficients, signature (0,2,0,-1).
Programs
-
Mathematica
LinearRecurrence[{0, 2, 0, -1}, {0, 3, 12, 9}, 50] (* G. C. Greubel, Apr 20 2016 *)
-
PARI
a(n) = my(n=3*n); if (n % 2, n, 2*n); \\ Michel Marcus, Apr 21 2016
Formula
a(n) = 2*a(n-2) - a(n-4).
G.f.: 3*x*(1+4*x+x^2)/((x-1)^2 *(1+x)^2).
E.g.f.: 3*x*(-1 + 3*exp(2*x))*exp(-x)/2. - Ilya Gutkovskiy, Apr 21 2016
Comments