cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 21-28 of 28 results.

A303812 Generalized 28-gonal (or icosioctagonal) numbers: m*(13*m - 12) with m = 0, +1, -1, +2, -2, +3, -3, ...

Original entry on oeis.org

0, 1, 25, 28, 76, 81, 153, 160, 256, 265, 385, 396, 540, 553, 721, 736, 928, 945, 1161, 1180, 1420, 1441, 1705, 1728, 2016, 2041, 2353, 2380, 2716, 2745, 3105, 3136, 3520, 3553, 3961, 3996, 4428, 4465, 4921, 4960, 5440, 5481, 5985, 6028, 6556, 6601, 7153, 7200, 7776, 7825, 8425, 8476, 9100, 9153
Offset: 0

Views

Author

Omar E. Pol, Jun 12 2018

Keywords

Comments

Partial sums of A317324. - Omar E. Pol, Jul 28 2018

Crossrefs

Sequences of generalized k-gonal numbers: A001318 (k=5), A000217 (k=6), A085787 (k=7), A001082 (k=8), A118277 (k=9), A074377 (k=10), A195160 (k=11), A195162 (k=12), A195313 (k=13), A195818 (k=14), A277082 (k=15), A274978 (k=16), A303305 (k=17), A274979 (k=18), A303813 (k=19), A218864 (k=20), A303298 (k=21), A303299 (k=22), A303303 (k=23), A303814 (k=24), A303304 (k=25), A316724 (k=26), A316725 (k=27), this sequence (k=28), A303815 (k=29), A316729 (k=30).

Programs

  • Magma
    I:=[0,1,25,28,76]; [n le 5 select I[n] else Self(n-1)+2*Self(n-2)-2*Self(n-3)-Self(n-4)+Self(n-5): n in [1..60]]; // Vincenzo Librandi, Jun 23 2018
  • Mathematica
    With[{nn = 54, s = 28}, {0}~Join~Riffle[Array[PolygonalNumber[s, #] &, Ceiling[nn/2]], Array[PolygonalNumber[s, -#] &, Ceiling[nn/2]]]] (* Michael De Vlieger, Jun 14 2018 *)
    CoefficientList[Series[x (1 + 24 x + x^2) / ((1 + x)^2 (1 - x)^3), {x, 0, 60}], x] (* Vincenzo Librandi, Jun 23 2018 *)

Formula

G.f.: x*(1 + 24*x + x^2) / ((1 + x)^2*(1 - x)^3). - Vincenzo Librandi, Jun 23 2018
From Amiram Eldar, Mar 01 2022: (Start)
a(n) = (26*n*(n + 1) + 11*(2*n + 1)*(-1)^n - 11)/8.
a(n) = n*(13*n + 24)/4, if n is even, or (n + 1)*(13*n - 11)/4 otherwise.
Sum_{n>=1} 1/a(n) = 13/144 + Pi*cot(Pi/13)/12. (End)

A303814 Generalized 24-gonal (or icositetragonal) numbers: m*(11*m - 10) with m = 0, +1, -1, +2, -2, +3, -3, ...

Original entry on oeis.org

0, 1, 21, 24, 64, 69, 129, 136, 216, 225, 325, 336, 456, 469, 609, 624, 784, 801, 981, 1000, 1200, 1221, 1441, 1464, 1704, 1729, 1989, 2016, 2296, 2325, 2625, 2656, 2976, 3009, 3349, 3384, 3744, 3781, 4161, 4200, 4600, 4641, 5061, 5104, 5544, 5589, 6049, 6096, 6576, 6625
Offset: 0

Views

Author

Omar E. Pol, Jun 06 2018

Keywords

Comments

a(25) = 1729 is the Hardy-Ramanujan number.
Numbers k such that 11*k + 25 is a square. - Bruno Berselli, Jun 08 2018
Partial sums of A317320. - Omar E. Pol, Jul 28 2018

Crossrefs

Sequences of generalized k-gonal numbers: A001318 (k=5), A000217 (k=6), A085787 (k=7), A001082 (k=8), A118277 (k=9), A074377 (k=10), A195160 (k=11), A195162 (k=12), A195313 (k=13), A195818 (k=14), A277082 (k=15), A274978 (k=16), A303305 (k=17), A274979 (k=18), A303813 (k=19), A218864 (k=20), A303298 (k=21), A303299 (k=22), A303303 (k=23), this sequence (k=24), A303304 (k=25), A316724 (k=26), A316725 (k=27), A303812 (k=28), A303815 (k=29), A316729 (k=30).

Programs

  • Mathematica
    With[{pp = 24, nn = 55}, {0}~Join~Riffle[Array[PolygonalNumber[pp, #] &, Ceiling[nn/2]], Array[PolygonalNumber[pp, -#] &, Ceiling[nn/2]]]] (* Michael De Vlieger, Jun 06 2018 *)
    Table[(22 n (n + 1) + 9 (2 n + 1) (-1)^n - 9)/8, {n, 0, 50}] (* Bruno Berselli, Jun 08 2018 *)
    CoefficientList[ Series[-x (x^2 + 20x + 1)/((x - 1)^3 (x + 1)^2), {x, 0, 50}], x] (* or *)
    LinearRecurrence[{1, 2, -2, -1, 1}, {0, 1, 21, 24, 64}, 50] (* Robert G. Wilson v, Jul 28 2018 *)
  • PARI
    concat(0, Vec(x*(1 + 20*x + x^2)/((1 + x)^2*(1 - x)^3) + O(x^40))) \\ Colin Barker, Jun 12 2018

Formula

From Bruno Berselli, Jun 08 2018: (Start)
G.f.: x*(1 + 20*x + x^2)/((1 + x)^2*(1 - x)^3).
a(n) = a(-n-1) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5).
a(n) = (22*n*(n + 1) + 9*(2*n + 1)*(-1)^n - 9)/8. Therefore:
a(n) = n*(11*n + 20)/4, if n is even, or (n + 1)*(11*n - 9)/4 otherwise.
(2*n - 1)*a(n) + (2*n + 1)*a(n-1) - n*(11*n^2 - 10) = 0. (End)
Sum_{n>=1} 1/a(n) = (11 + 10*Pi*cot(Pi/11))/100. - Amiram Eldar, Mar 01 2022

A316724 Generalized 26-gonal (or icosihexagonal) numbers: m*(12*m - 11) with m = 0, +1, -1, +2, -2, +3, -3, ...

Original entry on oeis.org

0, 1, 23, 26, 70, 75, 141, 148, 236, 245, 355, 366, 498, 511, 665, 680, 856, 873, 1071, 1090, 1310, 1331, 1573, 1596, 1860, 1885, 2171, 2198, 2506, 2535, 2865, 2896, 3248, 3281, 3655, 3690, 4086, 4123, 4541, 4580, 5020, 5061, 5523, 5566, 6050, 6095, 6601, 6648, 7176, 7225, 7775
Offset: 0

Views

Author

Omar E. Pol, Jul 11 2018

Keywords

Comments

48*a(n) + 121 is a square. - Bruno Berselli, Jul 11 2018
Partial sums of A317322. - Omar E. Pol, Jul 28 2018

Crossrefs

Sequences of generalized k-gonal numbers: A001318 (k=5), A000217 (k=6), A085787 (k=7), A001082 (k=8), A118277 (k=9), A074377 (k=10), A195160 (k=11), A195162 (k=12), A195313 (k=13), A195818 (k=14), A277082 (k=15), A274978 (k=16), A303305 (k=17), A274979 (k=18), A303813 (k=19), A218864 (k=20), A303298 (k=21), A303299 (k=22), A303303 (k=23), A303814 (k=24), A303304 (k=25), this sequence (k=26), A316725 (k=27), A303812 (k=28), A303815 (k=29), A316729 (k=30).

Programs

  • Magma
    [(12*n*(n+1) + 5*(-1)^n*(2*n+1) -5)/4: n in [0..60]]; // G. C. Greubel, Sep 24 2024
    
  • Mathematica
    Table[(12 n (n + 1) + 5 (2 n + 1) (-1)^n - 5)/4, {n, 0, 60}] (* Bruno Berselli, Jul 11 2018 *)
    CoefficientList[ Series[-x (x^2 + 22x + 1)/((x - 1)^3 (x + 1)^2), {x, 0, 60}], x] (* or *)
    LinearRecurrence[{1, 2, -2, -1, 1}, {0, 1, 23, 26, 70}, 60] (* Robert G. Wilson v, Jul 28 2018 *)
    nn=30; Sort[Table[n (12 n - 11), {n, -nn, nn}]] (* Vincenzo Librandi, Jul 29 2018 *)
  • PARI
    concat(0, Vec(x*(1 + 22*x + x^2)/((1 + x)^2*(1 - x)^3) + O(x^60))) \\ Colin Barker, Jul 12 2018
    
  • SageMath
    [(12*n*(n+1) + 5*(-1)^n*(2*n+1) -5)//4 for n in range(61)] # G. C. Greubel, Sep 24 2024

Formula

From Bruno Berselli, Jul 11 2018: (Start)
O.g.f.: x*(1 + 22*x + x^2)/((1 + x)^2*(1 - x)^3).
a(n) = a(-1-n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5).
a(n) = (12*n*(n + 1) + 5*(2*n + 1)*(-1)^n - 5)/4. Therefore:
a(n) = n*(6*n + 11)/2 for n even; otherwise, a(n) = (n + 1)*(6*n - 5)/2.
(2*n - 1)*a(n) + (2*n + 1)*a(n-1) - n*(12*n^2 - 11) = 0. (End)
From Amiram Eldar, Mar 01 2022: (Start)
Sum_{n>=1} 1/a(n) = 12/121 + (sqrt(3)+2)*Pi/11.
Sum_{n>=1} (-1)^(n+1)/a(n) = (2*sqrt(3)*log(sqrt(3)+2) + 6*log(2) + 3*log(3))/11 - 12/121. (End)
E.g.f.: (1/4)*(5*(1 - 2*x)*exp(-x) + (-5 + 24*x + 12*x^2)*exp(x)). - G. C. Greubel, Sep 24 2024

A316729 Generalized 30-gonal (or triacontagonal) numbers: m*(14*m - 13) with m = 0, +1, -1, +2, -2, +3, -3, ...

Original entry on oeis.org

0, 1, 27, 30, 82, 87, 165, 172, 276, 285, 415, 426, 582, 595, 777, 792, 1000, 1017, 1251, 1270, 1530, 1551, 1837, 1860, 2172, 2197, 2535, 2562, 2926, 2955, 3345, 3376, 3792, 3825, 4267, 4302, 4770, 4807, 5301, 5340, 5860, 5901, 6447, 6490, 7062, 7107, 7705, 7752, 8376, 8425, 9075, 9126, 9802, 9855
Offset: 0

Views

Author

Omar E. Pol, Jul 11 2018

Keywords

Comments

Note that in the sequences of generalized k-gonal numbers always a(3) = k. In this case k = 30.
Generalized k-gonal numbers are second k-gonal numbers and positive terms of k-gonal numbers interleaved, with k >= 5.
A general formula for the generalized k-gonal numbers is given by m*((k-2)*m-k+4)/2, with m = 0, +1, -1, +2, -2, +3, -3, ..., k >= 5.
Every sequence of generalized k-gonal numbers can be represented as vertices of a rectangular spiral constructed with line segments on the square grid, with k >= 5.
56*a(n) + 169 is a square. - Vincenzo Librandi, Jul 12 2018
Generalized k-gonal numbers are the partial sums of the sequence formed by the multiples of (k - 4) and the odd numbers (A005408) interleaved, with k >= 5. - Omar E. Pol, Jul 27 2018
Also partial sums of A317326. - Omar E. Pol, Jul 28 2018

Crossrefs

Sequences of generalized k-gonal numbers: A001318 (k=5), A000217 (k=6), A085787 (k=7), A001082 (k=8), A118277 (k=9), A074377 (k=10), A195160 (k=11), A195162 (k=12), A195313 (k=13), A195818 (k=14), A277082 (k=15), A274978 (k=16), A303305 (k=17), A274979 (k=18), A303813 (k=19), A218864 (k=20), A303298 (k=21), A303299 (k=22), A303303 (k=23), A303814 (k=24), A303304 (k=25), A316724 (k=26), A316725 (k=27), A303812 (k=28), A303815 (k=29), this sequence (k=30).

Programs

  • Mathematica
    CoefficientList[Series[x (1 + 26 x + x^2)/((1 + x)^2 (1 - x)^3), {x, 0, 55}], x] (* Vincenzo Librandi, Jul 12 2018 *)
    LinearRecurrence[{1, 2, -2, -1, 1}, {0, 1, 27, 30, 82}, 47] (* Robert G. Wilson v, Jul 28 2018 *)
  • PARI
    concat(0, Vec(x*(1 + 26*x + x^2)/((1 + x)^2*(1 - x)^3) + O(x^40))) \\ Colin Barker, Jul 16 2018

Formula

G.f.: x*(1 + 26*x + x^2)/((1 + x)^2*(1 - x)^3). - Vincenzo Librandi, Jul 12 2018
From Amiram Eldar, Mar 01 2022: (Start)
a(n) = (28*n*(n + 1) + 12*(2*n + 1)*(-1)^n - 12)/8.
a(n) = n*(7*n + 13)/2, if n is even, or (n + 1)*(7*n - 6)/2 otherwise.
Sum_{n>=1} 1/a(n) = 14/169 + Pi*cot(Pi/14)/13. (End)

Extensions

Duplicated term (1551) deleted by Colin Barker, Jul 16 2018

A303301 Square array T(n,k) read by antidiagonals upwards in which row n is obtained by taking the general formula for generalized n-gonal numbers: m*((n - 2)*m - n + 4)/2, where m = 0, +1, -1, +2, -2, +3, -3, ... and n >= 5. Here n >= 0.

Original entry on oeis.org

0, 0, 1, 0, 1, -3, 0, 1, -2, 0, 0, 1, -1, 1, -8, 0, 1, 0, 2, -5, -3, 0, 1, 1, 3, -2, 0, -15, 0, 1, 2, 4, 1, 3, -9, -8, 0, 1, 3, 5, 4, 6, -3, -2, -24, 0, 1, 4, 6, 7, 9, 3, 4, -14, -15, 0, 1, 5, 7, 10, 12, 9, 10, -4, -5, -35, 0, 1, 6, 8, 13, 15, 15, 16, 6, 5, -20, -24, 0, 1, 7, 9, 16, 18, 21, 22, 16, 15, -5, -9, -48
Offset: 0

Views

Author

Omar E. Pol, Jun 08 2018

Keywords

Comments

Note that the formula mentioned in the definition gives several kinds of numbers, for example:
Row 0 and row 1 give A317300 and A317301 respectively.
Row 2 gives A001057 (canonical enumeration of integers).
Row 3 gives 0 together with A008795 (Molien series for 3-dimensional representation of dihedral group D_6 of order 6).
Row 4 gives A008794 (squares repeated) except the initial zero.
Finally, for n >= 5 row n gives the generalized k-gonal numbers (see Crossrefs section).

Examples

			Array begins:
------------------------------------------------------------------
n\m  Seq. No.    0   1  -1   2  -2   3   -3    4   -4    5   -5
------------------------------------------------------------------
0    A317300:    0,  1, -3,  0, -8, -3, -15,  -8, -24, -15, -35...
1    A317301:    0,  1, -2,  1, -5,  0,  -9,  -2, -14,  -5, -20...
2    A001057:    0,  1, -1,  2, -2,  3,  -3,   4,  -4,   5,  -5...
3   (A008795):   0,  1,  0,  3,  1,  6,   3,  10,   6,  15,  10...
4   (A008794):   0,  1,  1,  4,  4,  9,   9,  16,  16,  25,  25...
5    A001318:    0,  1,  2,  5,  7, 12,  15,  22,  26,  35,  40...
6    A000217:    0,  1,  3,  6, 10, 15,  21,  28,  36,  45,  55...
7    A085787:    0,  1,  4,  7, 13, 18,  27,  34,  46,  55,  70...
8    A001082:    0,  1,  5,  8, 16, 21,  33,  40,  56,  65,  85...
9    A118277:    0,  1,  6,  9, 19, 24,  39,  46,  66,  75, 100...
10   A074377:    0,  1,  7, 10, 22, 27,  45,  52,  76,  85, 115...
11   A195160:    0,  1,  8, 11, 25, 30,  51,  58,  86,  95, 130...
12   A195162:    0,  1,  9, 12, 28, 33,  57,  64,  96, 105, 145...
13   A195313:    0,  1, 10, 13, 31, 36,  63,  70, 106, 115, 160...
14   A195818:    0,  1, 11, 14, 34, 39,  69,  76, 116, 125, 175...
15   A277082:    0,  1, 12, 15, 37, 42,  75,  82, 126, 135, 190...
...
		

Crossrefs

Columns 0..2 are A000004, A000012, A023445.
Column 3 gives A001477 which coincides with the row numbers.
Main diagonal gives A292551.
Row 0-2 gives A317300, A317301, A001057.
Row 3 gives 0 together with A008795.
Row 4 gives A008794.
For n >= 5, rows n gives the generalized n-gonal numbers: A001318 (n=5), A000217 (n=6), A085787 (n=7), A001082 (n=8), A118277 (n=9), A074377 (n=10), A195160 (n=11), A195162 (n=12), A195313 (n=13), A195818 (n=14), A277082 (n=15), A274978 (n=16), A303305 (n=17), A274979 (n=18), A303813 (n=19), A218864 (n=20), A303298 (n=21), A303299 (n=22), A303303 (n=23), A303814 (n=24), A303304 (n=25), A316724 (n=26), A316725 (n=27), A303812 (n=28), A303815 (n=29), A316729 (n=30).
Cf. A317302 (a similar table but with polygonal numbers).

Programs

  • Mathematica
    t[n_, r_] := PolygonalNumber[n, If[OddQ@ r, Floor[(r + 1)/2], -r/2]]; Table[ t[n - r, r], {n, 0, 11}, {r, 0, n}] // Flatten (* also *)
    (* to view the square array *)  Table[ t[n, r], {n, 0, 15}, {r, 0, 10}] // TableForm (* Robert G. Wilson v, Aug 08 2018 *)

Formula

T(n,k) = A194801(n-3,k) if n >= 3.

A317323 Multiples of 23 and odd numbers interleaved.

Original entry on oeis.org

0, 1, 23, 3, 46, 5, 69, 7, 92, 9, 115, 11, 138, 13, 161, 15, 184, 17, 207, 19, 230, 21, 253, 23, 276, 25, 299, 27, 322, 29, 345, 31, 368, 33, 391, 35, 414, 37, 437, 39, 460, 41, 483, 43, 506, 45, 529, 47, 552, 49, 575, 51, 598, 53, 621, 55, 644, 57, 667, 59, 690, 61, 713, 63, 736, 65, 759, 67, 782, 69
Offset: 0

Views

Author

Omar E. Pol, Jul 25 2018

Keywords

Comments

Partial sums give the generalized 27-gonal numbers (A316725).
a(n) is also the length of the n-th line segment of the rectangular spiral whose vertices are the generalized 27-gonal numbers.

Crossrefs

Cf. A008605 and A005408 interleaved.
Column 23 of A195151.
Sequences whose partial sums give the generalized k-gonal numbers: A026741 (k=5), A001477 (k=6), zero together with A080512 (k=7), A022998 (k=8), A195140 (k=9), zero together with A165998 (k=10), A195159 (k=11), A195161 (k=12), A195312 (k=13), A195817 (k=14).
Cf. A316725.

Programs

  • Mathematica
    With[{nn=40},Riffle[23*Range[0,nn],Range[1,2*nn,2]]] (* or *) LinearRecurrence[{0,2,0,-1},{0,1,23,3},80] (* Harvey P. Dale, May 05 2019 *)
  • PARI
    concat(0, Vec(x*(1 + 23*x + x^2) / ((1 - x)^2*(1 + x)^2) + O(x^60))) \\ Colin Barker, Jul 29 2018

Formula

a(2n) = 23*n, a(2n+1) = 2*n + 1.
From Colin Barker, Jul 29 2018: (Start)
G.f.: x*(1 + 23*x + x^2) / ((1 - x)^2*(1 + x)^2).
a(n) = 2*a(n-2) - a(n-4) for n>3. (End)
Multiplicative with a(2^e) = 23*2^(e-1), and a(p^e) = p^e for an odd prime p. - Amiram Eldar, Oct 14 2023
Dirichlet g.f.: zeta(s-1) * (1 + 21/2^s). - Amiram Eldar, Oct 26 2023

A317300 Sequence obtained by taking the general formula for generalized k-gonal numbers: m*((k - 2)*m - k + 4)/2, where m = 0, +1, -1, +2, -2, +3, -3, ... and k >= 5. Here k = 0.

Original entry on oeis.org

0, 1, -3, 0, -8, -3, -15, -8, -24, -15, -35, -24, -48, -35, -63, -48, -80, -63, -99, -80, -120, -99, -143, -120, -168, -143, -195, -168, -224, -195, -255, -224, -288, -255, -323, -288, -360, -323, -399, -360, -440, -399, -483, -440, -528, -483, -575, -528, -624, -575, -675, -624, -728, -675, -783
Offset: 0

Views

Author

Omar E. Pol, Jul 29 2018

Keywords

Comments

Taking the same formula with k = 1 we have A317301.
Taking the same formula with k = 2 we have A001057 (canonical enumeration of integers).
Taking the same formula with k = 3 we have 0 together with A008795 (Molien series for 3-dimensional representation of dihedral group D_6 of order 6).
Taking the same formula with k = 4 we have A008794 (squares repeated) except the initial zero.
Taking the same formula with k >= 5 we have the generalized k-gonal numbers (see Crossrefs section).

Crossrefs

Row 0 of A303301.
Sequences of generalized k-gonal numbers: A001318 (k=5), A000217 (k=6), A085787 (k=7), A001082 (k=8), A118277 (k=9), A074377 (k=10), A195160 (k=11), A195162 (k=12), A195313 (k=13), A195818 (k=14), A277082 (k=15), A274978 (k=16), A303305 (k=17), A274979 (k=18), A303813 (k=19), A218864 (k=20), A303298 (k=21), A303299 (k=22), A303303 (k=23), A303814 (k=24), A303304 (k=25), A316724 (k=26), A316725 (k=27), A303812 (k=28), A303815 (k=29), A316729 (k=30).

Programs

  • PARI
    concat(0, Vec(x*(1 - 4*x + x^2) / ((1 - x)^3*(1 + x)^2) + O(x^50))) \\ Colin Barker, Aug 01 2018

Formula

a(n) = -A174474(n+1).
From Colin Barker, Aug 01 2018: (Start)
G.f.: x*(1 - 4*x + x^2) / ((1 - x)^3*(1 + x)^2).
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5) for n>4.
a(n) = -n*(n + 4) / 4 for n even.
a(n) = -(n - 3)*(n + 1) / 4 for n odd.
(End)

A317301 Sequence obtained by taking the general formula for generalized k-gonal numbers: m*((k - 2)*m - k + 4)/2, where m = 0, +1, -1, +2, -2, +3, -3, ... and k >= 5. Here k = 1.

Original entry on oeis.org

0, 1, -2, 1, -5, 0, -9, -2, -14, -5, -20, -9, -27, -14, -35, -20, -44, -27, -54, -35, -65, -44, -77, -54, -90, -65, -104, -77, -119, -90, -135, -104, -152, -119, -170, -135, -189, -152, -209, -170, -230, -189, -252, -209, -275, -230, -299, -252, -324, -275, -350, -299, -377, -324, -405, -350, -434
Offset: 0

Views

Author

Omar E. Pol, Jul 29 2018

Keywords

Comments

Taking the same formula with k = 0 we have A317300.
Taking the same formula with k = 2 we have A001057 (canonical enumeration of integers).
Taking the same formula with k = 3 we have 0 together with A008795 (Molien series for 3-dimensional representation of dihedral group D_6 of order 6).
Taking the same formula with k = 4 we have A008794 (squares repeated) except the initial zero.
Taking the same formula with k >= 5 we have the generalized k-gonal numbers (see Crossrefs section).

Crossrefs

Row 1 of A303301.
Sequences of generalized k-gonal numbers: A001318 (k=5), A000217 (k=6), A085787 (k=7), A001082 (k=8), A118277 (k=9), A074377 (k=10), A195160 (k=11), A195162 (k=12), A195313 (k=13), A195818 (k=14), A277082 (k=15), A274978 (k=16), A303305 (k=17), A274979 (k=18), A303813 (k=19), A218864 (k=20), A303298 (k=21), A303299 (k=22), A303303 (k=23), A303814 (k=24), A303304 (k=25), A316724 (k=26), A316725 (k=27), A303812 (k=28), A303815 (k=29), A316729 (k=30).

Programs

  • Magma
    /* By definition: */ k:=1; [0] cat [m*i*((k-2)*m*i-k+4)/2: i in [1,-1], m in [1..30]]; // Bruno Berselli, Jul 30 2018
    
  • Mathematica
    Table[(-2 n (n + 1) - 5 (2 n + 1) (-1)^n + 5)/16, {n, 0, 60}] (* Bruno Berselli, Jul 30 2018 *)
  • PARI
    concat(0, Vec(x*(1 - 3*x + x^2)/((1 + x)^2*(1 - x)^3) + O(x^50))) \\ Colin Barker, Aug 01 2018

Formula

From Bruno Berselli, Jul 30 2018: (Start)
O.g.f.: x*(1 - 3*x + x^2)/((1 + x)^2*(1 - x)^3).
E.g.f.: (-5*(1 + 2*x) + (5 - 2*x^2)*exp(2*x))*exp(-x)/16.
a(n) = a(-n+1) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5).
a(n) = (-2*n*(n + 1) - 5*(2*n + 1)*(-1)^n + 5)/16. Therefore:
a(n) = -n*(n + 6)/8 for even n;
a(n) = -(n - 5)*(n + 1)/8 for odd n. Also:
a(n) = a(n-5) for odd n > 3.
2*(2*n - 1)*a(n) + 2*(2*n + 1)*a(n-1) + n*(n^2 - 3) = 0. (End)
Previous Showing 21-28 of 28 results.