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-10 of 21 results. Next

A190958 a(n) = 2*a(n-1) - 10*a(n-2), with a(0) = 0, a(1) = 1.

Original entry on oeis.org

0, 1, 2, -6, -32, -4, 312, 664, -1792, -10224, -2528, 97184, 219648, -532544, -3261568, -1197696, 30220288, 72417536, -157367808, -1038910976, -504143872, 9380822016, 23803082752, -46202054656, -330434936832, -198849327104, 2906650714112, 7801794699264
Offset: 0

Views

Author

Keywords

Comments

For the difference equation a(n) = c*a(n-1) - d*a(n-2), with a(0) = 0, a(1) = 1, the solution is a(n) = d^((n-1)/2) * ChebyshevU(n-1, c/(2*sqrt(d))) and has the alternate form a(n) = ( ((c + sqrt(c^2 - 4*d))/2)^n - ((c - sqrt(c^2 - 4*d))/2)^n )/sqrt(c^2 - 4*d). In the case c^2 = 4*d then the solution is a(n) = n*d^((n-1)/2). The generating function is x/(1 - c*x + d^2) and the exponential generating function takes the form (2/sqrt(c^2 - 4*d))*exp(c*x/2)*sinh(sqrt(c^2 - 4*d)*x/2) for c^2 > 4*d, (2/sqrt(4*d - c^2))*exp(c*x/2)*sin(sqrt(4*d - c^2)*x/2) for 4*d > c^2, and x*exp(sqrt(d)*x) if c^2 = 4*d. - G. C. Greubel, Jun 10 2022

Crossrefs

Programs

  • Magma
    I:=[0,1]; [n le 2 select I[n] else 2*Self(n-1)-10*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Sep 17 2011
    
  • Mathematica
    LinearRecurrence[{2,-10}, {0,1}, 50]
  • PARI
    a(n)=([0,1; -10,2]^n*[0;1])[1,1] \\ Charles R Greathouse IV, Apr 08 2016
    
  • SageMath
    [lucas_number1(n,2,10) for n in (0..50)] # G. C. Greubel, Jun 10 2022

Formula

G.f.: x / ( 1 - 2*x + 10*x^2 ). - R. J. Mathar, Jun 01 2011
E.g.f.: (1/3)*exp(x)*sin(3*x). - Franck Maminirina Ramaharo, Nov 13 2018
a(n) = 10^((n-1)/2) * ChebyshevU(n-1, 1/sqrt(10)). - G. C. Greubel, Jun 10 2022
a(n) = (1/3)*10^(n/2)*sin(n*arctan(3)) = Sum_{k=0..floor(n/2)} (-1)^k*3^(2*k)*binomial(n,2*k+1). - Gerry Martens, Oct 15 2022

A036239 Number of 2-element intersecting families of an n-element set; number of 2-way interactions when 2 subsets of power set on {1..n} are chosen at random.

Original entry on oeis.org

0, 2, 15, 80, 375, 1652, 7035, 29360, 120975, 494252, 2007555, 8120840, 32753175, 131818052, 529680075, 2125927520, 8525298975, 34165897052, 136857560595, 548011897400, 2193792030375, 8780400395252, 35137296305115, 140596265198480
Offset: 1

Views

Author

Keywords

Comments

Let P(A) be the power set of an n-element set A. Then a(n) = the number of pairs of elements {x,y} of P(A) for which either 0) x and y are intersecting but for which x is not a subset of y and y is not a subset of x, or 1) x and y are intersecting and for which either x is a proper subset of y or y is a proper subset of x. - Ross La Haye, Jan 10 2008
Graph theory formulation. Let P(A) be the power set of an n-element set A. Then a(n) = the number of edges in the intersection graph G of P(A). The vertices of G are the elements of P(A) and the edges of G are the pairs of elements {x,y} of P(A) such that x and y are intersecting (and x <> y). - Ross La Haye, Dec 23 2017

References

  • W. W. Kokko, "Interactions", manuscript, 1983.

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{10,-35,50,-24},{0,2,15,80},40] (* or *) With[{c=1/2!}, Table[ c(4^n-3^n-2^n+1),{n,40}]] (* Harvey P. Dale, May 11 2011 *)
  • PARI
    a(n)=(4^n-3^n-2^n+1)/2 \\ Charles R Greathouse IV, Jul 25 2011
  • Sage
    [(4^n - 2^n)/2-(3^n - 1)/2 for n in range(1,24)] # Zerinvary Lajos, Jun 05 2009
    

Formula

a(n) = (1/2) * (4^n - 3^n - 2^n + 1).
a(n) = 3*Stirling2(n+1,4) + 2*Stirling2(n+1,3). - Ross La Haye, Jan 10 2008
a(n) = A006516(n) - A003462(n). - Zerinvary Lajos, Jun 05 2009
From Harvey P. Dale, May 11 2011: (Start)
a(n) = 10*a(n-1) - 35*a(n-2) + 50*a(n-3) - 24*a(n-4); a(0)=0, a(1)=2, a(2)=15, a(3)=80.
G.f.: x^2*(2-5*x)/(1 - 10*x + 35*x^2 - 50*x^3 + 24*x^4). (End)
E.g.f.: exp(x)*(exp(x) - 1)^2*(exp(x) + 1)/2. - Stefano Spezia, Jun 26 2022

A005057 a(n) = 5^n - 2^n.

Original entry on oeis.org

0, 3, 21, 117, 609, 3093, 15561, 77997, 390369, 1952613, 9764601, 48826077, 244136529, 1220694933, 6103499241, 30517545357, 152587825089, 762939322053, 3814697003481, 19073485803837, 95367430592049, 476837156105973, 2384185786821321, 11920928946689517
Offset: 0

Views

Author

N. J. A. Sloane, Jun 14 1998

Keywords

Comments

Binomial transform of A024036. - Wesley Ivan Hurt, Apr 04 2014

References

  • P. P. Patwardhan, Discrete Structures, Technical Publications Pune, 2009 (first ed.), Section 4.27.1.2, p. 110 (Example 4.44-i).

Programs

Formula

a(n) = A000351(n) - A000079(n). - R. J. Mathar, May 07 2008
G.f.: 1/(1-5*x)-1/(1-2*x);
E.g.f.: e^(5*x)-e^(2*x). - Mohammad K. Azarian, Jan 14 2009
a(n) = 7*a(n-1)-10*a(n-2), a(0)=0, a(1)=3. - Vincenzo Librandi, Dec 30 2010
a(n+1) = 3 * A016127(n). - Vladimir Joseph Stephan Orlovsky, Jun 28 2011

A225466 Triangle read by rows, 3^k*S_3(n, k) where S_m(n, k) are the Stirling-Frobenius subset numbers of order m; n >= 0, k >= 0.

Original entry on oeis.org

1, 2, 3, 4, 21, 9, 8, 117, 135, 27, 16, 609, 1431, 702, 81, 32, 3093, 13275, 12015, 3240, 243, 64, 15561, 115479, 171990, 81405, 13851, 729, 128, 77997, 970515, 2238327, 1655640, 479682, 56133, 2187, 256, 390369, 7998111, 27533142, 29893941, 13121514, 2561706
Offset: 0

Views

Author

Peter Luschny, May 08 2013

Keywords

Comments

The definition of the Stirling-Frobenius subset numbers of order m is in A225468.
From Wolfdieter Lang, Apr 09 2017: (Start)
This is the Sheffer triangle (exp(2*x), exp(3*x) - 1), denoted by S2[3,2]. See also A282629 for S2[3,1]. The stirling2 triangle A048993 is in this notation denoted by S2[1,0].
The a-sequence for this Sheffer triangle has e.g.f. 3*x/log(1+x) and is 3*A006232(n)/A006233(n) (Cauchy numbers of the first kind). For a- and z-sequences for Sheffer triangles see the W. Lang link under A006232, also with references).
The z-sequence has e.g.f. (3/(log(1+x)))*(1 - 1/(1+x)^(2/3)) and gives 2*A284862/A284863.
The first column k sequences divided by 3^k are A000079, A016127, A016297, A025999. For the e.g.f.s and o.g.f.s see below.
The row sums give A284864. The alternating row sums give A284865.
This triangle appears in the o.g.f. G(n, x) of the sequence {(2 + 3*m)^n}{m>=0}, as G(n, x) = Sum{k=0..n} T(n, k)*k!*x^k/(1-x)^(k+1), n >= 0. Hence the corresponding e.g.f. is, by the linear inverse Laplace transform, E(n, t) = Sum_{m >=0} (2 + 3*m)^n t^m/m! = exp(t)*Sum_{k=0..n} T(n, k)*t^k.
The corresponding Eulerian number triangle is A225117(n, k) = Sum_{m=0..k} (-1)^(k-m)*binomial(n-m, k-m)*T(n, m)*m!, 0 <= k <= n. (End)

Examples

			[n\k][ 0,     1,      2,       3,       4,      5,     6,    7]
[0]    1,
[1]    2,     3,
[2]    4,    21,      9,
[3]    8,   117,    135,      27,
[4]   16,   609,   1431,     702,      81,
[5]   32,  3093,  13275,   12015,    3240,    243,
[6]   64, 15561, 115479,  171990,   81405,  13851,   729,
[7]  128, 77997, 970515, 2238327, 1655640, 479682, 56133, 2187.
...
From _Wolfdieter Lang_, Aug 11 2017: (Start)
Recurrence (see the Maple program): T(4, 2) = 3*T(3, 1) + (3*2+2)*T(3, 2) = 3*117 + 8*135 = 1431.
Boas-Buck recurrence for column k = 2, and n = 4: T(4,2) = (1/2)*(2*(4 + 3*2)*T(3, 2) + 2*6*(-3)^2*Bernoulli(2)*T(2, 2)) = (1/2)*(20*135 + 12*9*(1/6)*9) = 1431. (End)
		

Crossrefs

Programs

  • Maple
    SF_SS := proc(n, k, m) option remember;
    if n = 0 and k = 0 then return(1) fi;
    if k > n or  k < 0 then return(0) fi;
    m*SF_SS(n-1, k-1, m) + (m*(k+1)-1)*SF_SS(n-1, k, m) end:
    seq(print(seq(SF_SS(n, k, 3), k=0..n)), n=0..5);
  • Mathematica
    EulerianNumber[n_, k_, m_] := EulerianNumber[n, k, m] = (If[ n == 0, Return[If[k == 0, 1, 0]]]; Return[(m*(n-k)+m-1)*EulerianNumber[n-1, k-1, m] + (m*k+1)*EulerianNumber[n-1, k, m]]); SFSS[n_, k_, m_] := Sum[ EulerianNumber[n, j, m]*Binomial[j, n-k], {j, 0, n}]/k!; Table[ SFSS[n, k, 3], {n, 0, 8}, {k, 0, n}] // Flatten (* Jean-François Alcover, May 29 2013, translated from Sage *)
  • PARI
    T(n, k) = sum(j=0, k, binomial(k, j)*(-1)^(j - k)*(2 + 3*j)^n/k!);
    for(n=0, 10, for(k=0, n, print1(T(n, k),", ");); print();) \\ Indranil Ghosh, Apr 10 2017
    
  • Python
    from sympy import binomial, factorial
    def T(n, k): return sum(binomial(k, j)*(-1)**(j - k)*(2 + 3*j)**n//factorial(k) for j in range(k + 1))
    for n in range(11): print([T(n, k) for k in range(n + 1)]) # Indranil Ghosh, Apr 10 2017
  • Sage
    @CachedFunction
    def EulerianNumber(n, k, m) :
        if n == 0: return 1 if k == 0 else 0
        return (m*(n-k)+m-1)*EulerianNumber(n-1,k-1,m) + (m*k+1)*EulerianNumber(n-1,k,m)
    def SF_SS(n, k, m):
        return add(EulerianNumber(n,j,m)*binomial(j,n-k) for j in (0..n))/ factorial(k)
    def A225466(n): return SF_SS(n, k, 3)
    

Formula

T(n, k) = (1/k!)*Sum_{j=0..n} binomial(j, n-k)*A_3(n, j) where A_m(n, j) are the generalized Eulerian numbers A225117.
For a recurrence see the Maple program.
T(n, 0) ~ A000079; T(n, 1) ~ A005057; T(n, n) ~ A000244.
From Wolfdieter Lang, Apr 09 2017: (Start)
T(n, k) = Sum_{j=0..k} binomial(k,j)*(-1)^(j-k)*(2 + 3*j)^n/k!, 0 <= k <= n.
E.g.f. of triangle: exp(2*z)*exp(x*(exp(3*z)-1)) (Sheffer type).
E.g.f. for sequence of column k is exp(2*x)*((exp(3*x) - 1)^k)/k! (Sheffer property).
O.g.f. for sequence of column k is 3^k*x^k/Product_{j=0..k} (1 - (2+3*j)*x).
A nontrivial recurrence for the column m=0 entries T(n, 0) = 2^n from the z-sequence given above: T(n,0) = n*Sum_{k=0..n-1} z(k)*T(n-1,k), n >= 1, T(0, 0) = 1.
The corresponding recurrence for columns k >= 1 from the a-sequence is T(n, k) = (n/k)* Sum_{j=0..n-k} binomial(k-1+j, k-1)*a(j)*T(n-1, k-1+j).
Recurrence for row polynomials R(n, x) (Meixner type): R(n, x) = ((3*x+2) + 3*x*d_x)*R(n-1, x), with differentiation d_x, for n >= 1, with input R(0, x) = 1.
(End)
Boas-Buck recurrence for column sequence k: T(n, k) = (1/(n - k))*((n/2)*(4 + 3*k)*T(n-1, k) + k*Sum_{p=k..n-2} binomial(n, p)*(-3)^(n-p)*Bernoulli(n-p)*T(p, k)), for n > k >= 0, with input T(k, k) = 3^k. See a comment and references in A282629, An example is given below. - Wolfdieter Lang, Aug 11 2017

A225468 Triangle read by rows, S_3(n, k) where S_m(n, k) are the Stirling-Frobenius subset numbers of order m; n >= 0, k >= 0.

Original entry on oeis.org

1, 2, 1, 4, 7, 1, 8, 39, 15, 1, 16, 203, 159, 26, 1, 32, 1031, 1475, 445, 40, 1, 64, 5187, 12831, 6370, 1005, 57, 1, 128, 25999, 107835, 82901, 20440, 1974, 77, 1, 256, 130123, 888679, 1019746, 369061, 53998, 3514, 100, 1
Offset: 0

Views

Author

Peter Luschny, May 16 2013

Keywords

Comments

The definition of the Stirling-Frobenius subset numbers: S_m(n, k) = (Sum_{j=0..n} binomial(j, n-k)*A_m(n, j)) / (m^k*k!) where A_m(n, j) are the generalized Eulerian numbers. For m = 1 this gives the classical Stirling set numbers A048993. (See the links for details.)
From Peter Bala, Jan 27 2015: (Start)
Exponential Riordan array [ exp(2*z), 1/3*(exp(3*z) - 1)].
Triangle equals P * A111577 = P^(-1) * A075498, where P is Pascal's triangle A007318.
Triangle of connection constants between the polynomial basis sequences {x^n}n>=0 and { n!*3^n*binomial((x - 2)/3,n) }n>=0. An example is given below.
This triangle is the particular case a = 3, b = 0, c = 2 of the triangle of generalized Stirling numbers of the second kind S(a,b,c) defined in the Bala link. (End)

Examples

			[n\k][ 0,    1,     2,    3,    4,  5,  6]
[0]    1,
[1]    2,    1,
[2]    4,    7,     1,
[3]    8,   39,    15,    1,
[4]   16,  203,   159,   26,    1,
[5]   32, 1031,  1475,  445,   40,  1,
[6]   64, 5187, 12831, 6370, 1005, 57,  1.
Connection constants: Row 3: [8, 39, 15, 1] so
x^3 = 8 + 39*(x - 2) + 15*(x - 2)*(x - 5) + (x - 2)*(x - 5)*(x - 8). - _Peter Bala_, Jan 27 2015
		

Crossrefs

Cf. A048993 (m=1), A039755 (m=2), A225469 (m=4).

Programs

  • Maple
    SF_S := proc(n, k, m) option remember;
    if n = 0 and k = 0 then return(1) fi;
    if k > n or k < 0 then return(0) fi;
    SF_S(n-1, k-1, m) + (m*(k+1)-1)*SF_S(n-1, k, m) end:
    seq(print(seq(SF_S(n, k, 3), k=0..n)), n = 0..5);
  • Mathematica
    EulerianNumber[n_, k_, m_] := EulerianNumber[n, k, m] = (If[ n == 0, Return[If[k == 0, 1, 0]]]; Return[(m*(n-k)+m-1)*EulerianNumber[n-1, k-1, m] + (m*k+1)*EulerianNumber[n-1, k, m]]); SFS[n_, k_, m_] := Sum[ EulerianNumber[n, j, m]*Binomial[j, n-k], {j, 0, n}]/(k!*m^k); Table[ SFS[n, k, 3], {n, 0, 8}, {k, 0, n}] // Flatten (* Jean-François Alcover, May 29 2013, translated from Sage *)
  • Sage
    @CachedFunction
    def EulerianNumber(n, k, m) :
        if n == 0: return 1 if k == 0 else 0
        return (m*(n-k)+m-1)*EulerianNumber(n-1,k-1,m) + (m*k+1)*EulerianNumber(n-1,k,m)
    def SF_S(n, k, m):
        return add(EulerianNumber(n, j, m)*binomial(j, n - k) for j in (0..n))/ (factorial(k)*m^k)
    for n in (0..6): [SF_S(n, k, 3) for k in (0..n)]

Formula

T(n, k) = (Sum_{j=0..n} binomial(j, n-k)*A_3(n, j)) / (3^k*k!) with A_3(n,j) = A225117.
For a recurrence see the Maple program.
T(n, 0) ~ A000079; T(n, 1) ~ A016127; T(n, 2) ~ A016297; T(n, 3) ~ A025999;
T(n, n) ~ A000012; T(n, n-1) ~ A005449; T(n, n-2) ~ A024212.
From Peter Bala, Jan 27 2015: (Start)
T(n,k) = Sum_{i = 0..n} (-1)^(n+i)*3^(i-k)*binomial(n,i)*Stirling2(i+1,k+1).
E.g.f.: exp(2*z)*exp(x/3*(exp(3*z) - 1)) = 1 + (2 + x)*z + (4 + 7*x + x^2)*z^2/2! + ....
T(n,k) = 1/(3^k*k!)*Sum_{j = 0..k} (-1)^(k-j)*binomial(k,j)*(3*j + 2)^n.
O.g.f. for n-th diagonal: exp(-2*x/3)*Sum_{k >= 0} (3*k + 2)^(k + n - 1)*((x/3*exp(-x))^k)/k!.
O.g.f. column k: 1/( (1 - 2*x)*(1 - 5*x)...(1 - (3*k + 2)*x) ). (End)
E.g.f. column k: exp(2*x)*((exp(3*x) - 1)/3)^k, k >= 0. See the Bala link for the S(3,0,2) exponential Riordan aka Sheffer triangle. - Wolfdieter Lang, Apr 10 2017

A016137 Expansion of 1/((1-3*x)*(1-6*x)).

Original entry on oeis.org

1, 9, 63, 405, 2511, 15309, 92583, 557685, 3352671, 20135709, 120873303, 725416965, 4353033231, 26119793709, 156723545223, 940355620245, 5642176768191, 33853189749309, 203119525916343, 1218718317759525, 7312313393341551, 43873890820402509, 263243376303474663, 1579460351964026805, 9476762394213697311
Offset: 0

Views

Author

Keywords

Crossrefs

Second column of triangle A075498.

Programs

Formula

a(n) = (3^n)*Stirling2(n+2, 2), n >= 0, with Stirling2(n, m) = A008277(n, m).
a(n) = 2*6^n - 3^n.
E.g.f.: (d^2/dx^2)((((exp(3*x)-1)/3)^2)/2!) = -exp(3*x) + 2*exp(6*x).
With leading zero, this is (6^n - 3^n)/3, the binomial transform of A016127 (with extra leading zero). - Paul Barry, Aug 20 2003
With leading zero, this is the fourth binomial transform of A001045, with a(n) = (2^n-1)(3^n/3 - 0^n/3) = A000225(n)*(A000244(n-1) - 0^n/3). - Paul Barry, Apr 28 2004
a(n) = Sum_{k=0..n} A100852(n,k). - Reinhard Zumkeller, Nov 20 2004
Sum_{k=1..n} 3^(k-1)*3^(n-k)*binomial(n, k). - Zerinvary Lajos, Sep 24 2006
a(n) = 9*a(n-1) - 18*a(n-2), n >= 2. - Vincenzo Librandi, Mar 14 2011

Extensions

More terms added by G. C. Greubel, Nov 14 2024

A016297 Expansion of 1/((1-2*x) * (1-5*x) * (1-8*x)).

Original entry on oeis.org

1, 15, 159, 1475, 12831, 107835, 888679, 7239555, 58567311, 471793355, 3790622199, 30406356435, 243657749791, 1951296498075, 15620544499719, 125015218606115, 1000376061956271, 8004280061317995, 64040598319145239, 512356575696692595, 4099011551292242751
Offset: 0

Views

Author

Keywords

Crossrefs

Formula

From Vincenzo Librandi, Mar 16 2011: (Start)
a(n) = 15*a(n-1) - 66*a(n-2) + 80*a(n-3), n >= 3.
a(n) = 13*a(n-1) - 40*a(n-2) + 2^n, n >= 2. (End)
a(n) = 4*8^(n+1)/9 + 2^(n+1)/9 - 5^(n+2)/9. - R. J. Mathar, Mar 18 2011
From Seiichi Manyama, May 04 2025: (Start)
a(n) = Sum_{k=0..n} 3^k * 2^(n-k) * binomial(n+2,k+2) * Stirling2(k+2,2).
a(n) = Sum_{k=0..n} (-3)^k * 8^(n-k) * binomial(n+2,k+2) * Stirling2(k+2,2). (End)
E.g.f.: exp(2*x)*(2 - 25*exp(3*x) + 32*exp(6*x))/9. - Stefano Spezia, May 04 2025

A225472 Triangle read by rows, k!*S_3(n, k) where S_m(n, k) are the Stirling-Frobenius subset numbers of order m; n >= 0, k >= 0.

Original entry on oeis.org

1, 2, 3, 4, 21, 18, 8, 117, 270, 162, 16, 609, 2862, 4212, 1944, 32, 3093, 26550, 72090, 77760, 29160, 64, 15561, 230958, 1031940, 1953720, 1662120, 524880, 128, 77997, 1941030, 13429962, 39735360, 57561840, 40415760, 11022480, 256, 390369, 15996222, 165198852
Offset: 0

Views

Author

Peter Luschny, May 17 2013

Keywords

Comments

The Stirling-Frobenius subset numbers are defined in A225468 (see also the Sage program).

Examples

			[n\k][0,     1,      2,       3,       4,       5,      6 ]
[0]   1,
[1]   2,     3,
[2]   4,    21,     18,
[3]   8,   117,    270,     162,
[4]  16,   609,   2862,    4212,    1944,
[5]  32,  3093,  26550,   72090,   77760,   29160,
[6]  64, 15561, 230958, 1031940, 1953720, 1662120, 524880.
		

Crossrefs

Cf. A131689 (m=1), A145901 (m=2), A225473 (m=4).
Cf. A225466, A225468, columns: A000079, 3*A016127, 3^2*2!*A016297, 3^3*3!*A025999.

Programs

  • Maple
    SF_SO := proc(n, k, m) option remember;
    if n = 0 and k = 0 then return(1) fi;
    if k > n or k < 0 then return(0) fi;
    m*k*SF_SO(n-1, k-1, m) + (m*(k+1)-1)*SF_SO(n-1, k, m) end:
    seq(print(seq(SF_SO(n, k, 3), k=0..n)), n = 0..5);
  • Mathematica
    EulerianNumber[n_, k_, m_] := EulerianNumber[n, k, m] = (If[ n == 0, Return[If[k == 0, 1, 0]]]; Return[(m*(n-k)+m-1)*EulerianNumber[n-1, k-1, m] + (m*k+1)*EulerianNumber[n-1, k, m]]); SFSO[n_, k_, m_] := Sum[ EulerianNumber[n, j, m]*Binomial[j, n-k], {j, 0, n}]; Table[ SFSO[n, k, 3], {n, 0, 8}, {k, 0, n}] // Flatten (* Jean-François Alcover, May 29 2013, translated from Sage *)
  • Sage
    @CachedFunction
    def EulerianNumber(n, k, m) :
        if n == 0: return 1 if k == 0 else 0
        return (m*(n-k)+m-1)*EulerianNumber(n-1, k-1, m)+ (m*k+1)*EulerianNumber(n-1, k, m)
    def SF_SO(n, k, m):
        return add(EulerianNumber(n, j, m)*binomial(j, n - k) for j in (0..n))
    for n in (0..6): [SF_SO(n, k, 3) for k in (0..n)]

Formula

For a recurrence see the Maple program.
T(n, 0) ~ A000079; T(n, 1) ~ A005057; T(n, n) ~ A032031.
From Wolfdieter Lang, Apr 10 2017: (Start)
E.g.f. for sequence of column k: exp(2*x)*(exp(3*x) - 1)^k, k >= 0. From the Sheffer triangle S2[3,2] = A225466 with column k multiplied with k!.
O.g.f. for sequence of column k is 3^k*k!*x^k/Product_{j=0..k} (1 - (2+3*j)*x), k >= 0.
T(n, k) = Sum_{j=0..k} (-1)^(k-j)*binomial(k, j)*(2+3*j)^n, 0 <= k <= n.
Three term recurrence (see the Maple program): T(n, k) = 0 if n < k , T(n, -1) = 0, T(0,0) = 1, T(n, k) = 3*k*T(n-1, k-1) + (2 + 3*k)*T(n-1, k) for n >= 1, k=0..n.
For the column scaled triangle (with diagonal 1s) see A225468, and the Bala link with (a,b,c) = (3,0,2), where Sheffer triangles are called exponential Riordan triangles.
(End)
The e.g.f. of the row polynomials R(n, x) = Sum_{k=0..n} T(n, k)*x^k is exp(2*z)/(1 - x*(exp(3*z) - 1)). - Wolfdieter Lang, Jul 12 2017

A255242 Calculate the aliquot parts of a number n and take their sum. Then repeat the process calculating the aliquot parts of all the previous aliquot parts and add their sum to the previous one. Repeat the process until the sum to be added is zero. Sequence lists these sums.

Original entry on oeis.org

0, 1, 1, 4, 1, 8, 1, 12, 5, 10, 1, 30, 1, 12, 11, 32, 1, 36, 1, 38, 13, 16, 1, 92, 7, 18, 19, 46, 1, 74, 1, 80, 17, 22, 15, 140, 1, 24, 19, 116, 1, 90, 1, 62, 51, 28, 1, 256, 9, 62, 23, 70, 1, 136, 19, 140, 25, 34, 1, 286, 1, 36, 61, 192, 21, 122, 1, 86, 29, 114
Offset: 1

Views

Author

Paolo P. Lava, Feb 19 2015

Keywords

Comments

a(n) = 1 if n is prime.

Examples

			The aliquot parts of 8 are 1, 2, 4 and their sum is 7.
Now, let us calculate the aliquot parts of 1, 2 and 4:
1 => 0;  2 => 1;  4 => 1, 2.  Their sum is 0 + 1 + 1 + 2 = 4.
Let us calculate the aliquot parts of 1, 1, 2:
1 => 0;  1 = > 0; 2 => 1. Their sum is 1.
We have left 1: 1 => 0.
Finally, 7 + 4 + 1 = 12. Therefore a(8) = 12.
		

Crossrefs

Programs

  • Maple
    with(numtheory): P:=proc(q) local a,b,c,k,n,t,v;
    for n from 1 to q do b:=0; a:=sort([op(divisors(n))]); t:=nops(a)-1;
    while add(a[k],k=1..t)>0 do b:=b+add(a[k],k=1..t); v:=[];
    for k from 2 to t do c:=sort([op(divisors(a[k]))]); v:=[op(v),op(c[1..nops(c)-1])]; od;
    a:=v; t:=nops(a); od; print(b); od; end: P(10^3);
  • Mathematica
    f[s_] := Flatten[Most[Divisors[#]] & /@ s]; a[n_] := Total@Flatten[FixedPointList[ f, {n}]] - n; Array[a, 100] (* Amiram Eldar, Apr 06 2019 *)
  • PARI
    ali(n) = setminus(divisors(n), Set(n));
    a(n) = my(list = List(), v = [n]); while (#v, my(w = []); for (i=1, #v, my(s=ali(v[i])); for (j=1, #s, w = concat(w, s[j]); listput(list, s[j]));); v = w;); vecsum(Vec(list)); \\ Michel Marcus, Jul 15 2023

Formula

a(1) = 0.
a(2^k) = k*2^(k-1) = A001787(k), for k>=1.
a(n^k) = (n^k-2^k)/(n-2), for n odd prime and k>=1.
In particular:
a(3^k) = A001047(k-1);
a(5^k) = A016127(k-1);
a(7^k) = A016130(k-1);
a(11^k) = A016135(k-1).
From Antti Karttunen, Nov 22 2024: (Start)
a(n) = A330575(n) - n.
Also, following formulas were conjectured by Sequence Machine:
a(n) = (A191161(n)-n)/2.
a(n) = Sum_{d|n} A001065(d)*A074206(n/d). [Compare to David A. Corneth's Apr 13 2020 formula for A330575]
a(n) = Sum_{d|n} A051953(d)*A067824(n/d).
a(n) = Sum_{d|n} A000203(d)*A174726(n/d).
a(n) = Sum_{d|n} A062790(d)*A253249(n/d).
a(n) = Sum_{d|n} A157658(d)*A191161(n/d).
a(n) = Sum_{d|n} A174725(d)*A211779(n/d).
a(n) = Sum_{d|n} A245211(d)*A323910(n/d).
(End)

A025999 Expansion of g.f. 1/((1-2*x) * (1-5*x) * (1-8*x) * (1-11*x)).

Original entry on oeis.org

1, 26, 445, 6370, 82901, 1019746, 12105885, 140404290, 1603014501, 18104952866, 202945103725, 2262802497410, 25134485221301, 278430633932386, 3078357517755965, 33986947913921730, 374856803115095301, 4131429114327366306, 45509760855920174605, 501119725990818613250
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[1/((1-2x)(1-5x)(1-8x)(1-11x)),{x,0,20}],x] (* or *) LinearRecurrence[{26,-231,806,-880},{1,26,445,6370},20] (* Harvey P. Dale, May 24 2014 *)

Formula

a(n) = -4*2^n/81 +125*5^n/54 -256*8^n/27 +1331*11^n/162. - R. J. Mathar, Jun 20 2013
a(0)=1, a(1)=26, a(2)=445, a(3)=6370, a(n)=26*a(n-1)-231*a(n-2)+ 806*a(n-3)- 880*a(n-4). - Harvey P. Dale, May 24 2014
From Seiichi Manyama, May 04 2025: (Start)
a(n) = Sum_{k=0..n} 3^k * 2^(n-k) * binomial(n+3,k+3) * Stirling2(k+3,3).
a(n) = Sum_{k=0..n} (-3)^k * 11^(n-k) * binomial(n+3,k+3) * Stirling2(k+3,3). (End)
E.g.f.: exp(2*x)*(1331*exp(9*x) - 1536*exp(6*x) + 375*exp(3*x) - 8)/162. - Stefano Spezia, May 04 2025
Showing 1-10 of 21 results. Next