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.

Showing 1-4 of 4 results.

A292551 Expansion of x*(1 - 2*x + x^2 + 7*x^3 - x^4)/((1 - x)^4*(1 + x)^3).

Original entry on oeis.org

0, 1, -1, 3, 4, 12, 21, 34, 56, 75, 115, 141, 204, 238, 329, 372, 496, 549, 711, 775, 980, 1056, 1309, 1398, 1704, 1807, 2171, 2289, 2716, 2850, 3345, 3496, 4064, 4233, 4879, 5067, 5796, 6004, 6821, 7050, 7960, 8211, 9219, 9493, 10604, 10902, 12121, 12444, 13776, 14125, 15575
Offset: 0

Views

Author

Ilya Gutkovskiy, Sep 18 2017

Keywords

Comments

The n-th generalized n-gonal number (for n >= 5).

Crossrefs

Main diagonal of A303301.

Programs

  • GAP
    List([0..50],n->(2*n^3-2*n^2+(-1)^n*(2*n^2-11*n-6)-5*n+6)/16); # Muniru A Asiru, Aug 08 2018
  • Maple
    a:= n-> (m-> m*((n-2)*m-(n-4))/2)(-ceil(n/2)*(-1)^n):
    seq(a(n), n=0..100);  # Alois P. Heinz, Aug 29 2018
  • Mathematica
    CoefficientList[Series[x (1 - 2 x + x^2 + 7 x^3 - x^4)/((1 - x)^4 (1 + x)^3), {x, 0, 50}], x]
    Table[SeriesCoefficient[x (1 + (n - 4) x + x^2)/((1 - x)^3 (1 + x)^2), {x, 0, n}], {n, 0, 50}]
    LinearRecurrence[{1, 3, -3, -3, 3, 1, -1}, {0, 1, -1, 3, 4, 12, 21}, 51]
    Table[(2 n^3 - 2 n^2 + (-1)^n (2 n^2 - 11 n - 6) - 5 n + 6)/16, {n, 0, 50}]
  • PARI
    x='x+O('x^99); concat(0, Vec(x*(1-2*x+x^2+7*x^3-x^4)/((1-x)^4*(1+x)^3))) \\ Altug Alkan, Sep 18 2017
    

Formula

G.f.: x*(1 - 2*x + x^2 + 7*x^3 - x^4)/((1 - x)^4*(1 + x)^3).
a(n) = [x^n] x*(1 + (n - 4)*x + x^2)/((1 - x)^3*(1 + x)^2).
E.g.f.: (1/16)*((-6 + 9*x + 2*x^2)*exp(-x) + (6 - 5*x + 4*x^2 + 2*x^3)*exp(x)).
a(n) = a(n-1) + 3*a(n-2) - 3*a(n-3) - 3*a(n-4) + 3*a(n-5) + a(n-6) - a(n-7).
a(n) = (2*n^3 - 2*n^2 + (-1)^n*(2*n^2 - 11*n - 6) - 5*n + 6)/16.

A317302 Square array T(n,k) = (n - 2)*(k - 1)*k/2 + k, with n >= 0, k >= 0, read by antidiagonals upwards.

Original entry on oeis.org

0, 0, 1, 0, 1, 0, 0, 1, 1, -3, 0, 1, 2, 0, -8, 0, 1, 3, 3, -2, -15, 0, 1, 4, 6, 4, -5, -24, 0, 1, 5, 9, 10, 5, -9, -35, 0, 1, 6, 12, 16, 15, 6, -14, -48, 0, 1, 7, 15, 22, 25, 21, 7, -20, -63, 0, 1, 8, 18, 28, 35, 36, 28, 8, -27, -80, 0, 1, 9, 21, 34, 45, 51, 49, 36, 9, -35, -99, 0, 1, 10, 24, 40, 55, 66
Offset: 0

Views

Author

Omar E. Pol, Aug 09 2018

Keywords

Comments

Note that the formula gives several kinds of numbers, for example:
Row 0 gives 0 together with A258837.
Row 1 gives 0 together with A080956.
Row 2 gives A001477, the nonnegative numbers.
For n >= 3, row n gives the n-gonal numbers (see Crossrefs section).

Examples

			Array begins:
------------------------------------------------------------------------
n\k  Numbers       Seq. No.   0   1   2   3   4    5    6    7    8
------------------------------------------------------------------------
0    ............ (A258837):  0,  1,  0, -3, -8, -15, -24, -35, -48, ...
1    ............ (A080956):  0,  1,  1,  0, -2,  -5,  -9, -14, -20, ...
2    Nonnegatives  A001477:   0,  1,  2,  3,  4,   5,   6,   7,   8, ...
3    Triangulars   A000217:   0,  1,  3,  6, 10,  15,  21,  28,  36, ...
4    Squares       A000290:   0,  1,  4,  9, 16,  25,  36,  49,  64, ...
5    Pentagonals   A000326:   0,  1,  5, 12, 22,  35,  51,  70,  92, ...
6    Hexagonals    A000384:   0,  1,  6, 15, 28,  45,  66,  91, 120, ...
7    Heptagonals   A000566:   0,  1,  7, 18, 34,  55,  81, 112, 148, ...
8    Octagonals    A000567:   0,  1,  8, 21, 40,  65,  96, 133, 176, ...
9    9-gonals      A001106:   0,  1,  9, 24, 46,  75, 111, 154, 204, ...
10   10-gonals     A001107:   0,  1, 10, 27, 52,  85, 126, 175, 232, ...
11   11-gonals     A051682:   0,  1, 11, 30, 58,  95, 141, 196, 260, ...
12   12-gonals     A051624:   0,  1, 12, 33, 64, 105, 156, 217, 288, ...
13   13-gonals     A051865:   0,  1, 13, 36, 70, 115, 171, 238, 316, ...
14   14-gonals     A051866:   0,  1, 14, 39, 76, 125, 186, 259, 344, ...
15   15-gonals     A051867:   0,  1, 15, 42, 82, 135, 201, 280, 372, ...
...
		

Crossrefs

Column 0 gives A000004.
Column 1 gives A000012.
Column 2 gives A001477, which coincides with the row numbers.
Main diagonal gives A060354.
Row 0 gives 0 together with A258837.
Row 1 gives 0 together with A080956.
Row 2 gives A001477, the same as column 2.
For n >= 3, row n gives the n-gonal numbers: A000217 (n=3), A000290 (n=4), A000326 (n=5), A000384 (n=6), A000566 (n=7), A000567 (n=8), A001106 (n=9), A001107 (n=10), A051682 (n=11), A051624 (n=12), A051865 (n=13), A051866 (n=14), A051867 (n=15), A051868 (n=16), A051869 (n=17), A051870 (n=18), A051871 (n=19), A051872 (n=20), A051873 (n=21), A051874 (n=22), A051875 (n=23), A051876 (n=24), A255184 (n=25), A255185 (n=26), A255186 (n=27), A161935 (n=28), A255187 (n=29), A254474 (n=30).
Cf. A303301 (similar table but with generalized polygonal numbers).

Formula

T(n,k) = A139600(n-2,k) if n >= 2.
T(n,k) = A139601(n-3,k) if n >= 3.

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)
Showing 1-4 of 4 results.