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 10 results.

A334466 Square array read by antidiagonals upwards: T(n,k) is the total number of parts in all partitions of n into consecutive parts that differ by k, with n >= 1, k >= 0.

Original entry on oeis.org

1, 3, 1, 4, 1, 1, 7, 3, 1, 1, 6, 1, 1, 1, 1, 12, 3, 3, 1, 1, 1, 8, 4, 1, 1, 1, 1, 1, 15, 3, 3, 3, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 18, 6, 3, 3, 3, 1, 1, 1, 1, 1, 12, 5, 4, 1, 1, 1, 1, 1, 1, 1, 1, 28, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 14, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 24, 3, 6, 3, 3, 3, 3, 1
Offset: 1

Views

Author

Omar E. Pol, May 01 2020

Keywords

Comments

The one-part partition n = n is included in the count.
The column k is related to (k+2)-gonal numbers, assuming that 2-gonals are the nonnegative numbers, 3-gonals are the triangular numbers, 4-gonals are the squares, 5-gonals are the pentagonal numbers, and so on.
Note that the number of parts for T(n,0) = A000203(n), equaling the sum of the divisors of n.
For fixed k>0, Sum_{j=1..n} T(j,k) ~ 2^(3/2) * n^(3/2) / (3*sqrt(k)). - Vaclav Kotesovec, Oct 23 2024

Examples

			Square array starts:
   n\k|   0  1  2  3  4  5  6  7  8  9 10 11 12
   ---+---------------------------------------------
   1  |   1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
   2  |   3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
   3  |   4, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
   4  |   7, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
   5  |   6, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
   6  |  12, 4, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, ...
   7  |   8, 3, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, ...
   8  |  15, 1, 3, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, ...
   9  |  13, 6, 4, 3, 1, 3, 1, 3, 1, 1, 1, 1, 1, ...
  10  |  18, 5. 3. 1. 3. 1, 3, 1, 3, 1, 1, 1, 1, ...
  11  |  12, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 1, 1, ...
  12  |  28, 4, 6, 4, 3, 1, 3, 1, 3, 1, 3, 1, 1, ...
  ...
For n = 9 we have that:
For k = 0 the partitions of 9 into consecutive parts that differ by 0 (or simply: the partitions of 9 into equal parts) are [9], [3,3,3], [1,1,1,1,1,1,1,1,1]. In total there are 13 parts, so T(9,0) = 13.
For k = 1 the partitions of 9 into consecutive parts that differ by 1 (or simply: the partitions of 9 into consecutive parts) are [9], [5,4], [4,3,2]. In total there are six parts, so T(9,1) = 6.
For k = 2 the partitions of 9 into consecutive parts that differ by 2 are [9], [5, 3, 1]. In total there are four parts, so T(9,2) = 4.
		

Crossrefs

Columns k: A000203 (k=0), A204217 (k=1), A066839 (k=2), A330889 (k=3), A334464 (k=4), A334732 (k=5), A334949 (k=6), A377300 (k=7), A377301 (k=8).
Triangles whose row sums give the column k: A127093 (k=0), A285914 (k=1), A330466 (k=2) (conjectured), A330888 (k=3), A334462 (k=4), A334540 (k=5), A339947 (k=6).
Sequences of number of partitions related to column k: A000005 (k=0), A001227 (k=1), A038548 (k=2), A117277 (k=3), A334461 (k=4), A334541 (k=5), A334948 (k=6).
Tables of partitions related to column k: A010766 (k=0), A286001 (k=1), A332266 (k=2), A334945 (k=3), A334618 (k=4).
Polygonal numbers related to column k: A001477 (k=0), A000217 (k=1), A000290 (k=2), A000326 (k=3), A000384 (k=4), A000566 (k=5), A000567 (k=6).

Programs

  • Mathematica
    nmax = 14;
    col[k_] := col[k] = CoefficientList[Sum[n x^(n(k n - k + 2)/2)/(1 - x^n), {n, 1, nmax}] + O[x]^(nmax+1), x];
    T[n_, k_] := col[k][[n+1]];
    Table[T[n-k, k], {n, 1, nmax}, {k, 0, n-1}] // Flatten (* Jean-François Alcover, Nov 30 2020 *)

Formula

The g.f. for column k is Sum_{n>=1} n*x^(n*(k*n-k+2)/2)/(1-x^n). (For proof, see A330889. - N. J. A. Sloane, Nov 21 2020)

A131758 Coefficients of numerators of rational functions whose binomial transforms give the normalized polylogarithms Li(-n,t)/n!.

Original entry on oeis.org

1, 0, 1, -1, 1, 2, 4, -14, 10, 6, -15, 83, -157, 89, 24, 56, -424, 1266, -1724, 826, 120, -185, 1887, -8038, 17642, -19593, 8287, 720, 204, -4976, 36226, -126944, 239576, -234688, 90602, 5040
Offset: 0

Views

Author

Tom Copeland, Sep 17 2007, Sep 27 2007, Sep 30 2007, Oct 01 2007, Oct 08 2007

Keywords

Comments

Coefficients may be generated from a modified Riordan array (MRA) formed from Rgf(z,t) = (t/(1+z))/(exp(-z/(1+z))-t) with each row of the array acting to generate the succeeding polynomial P(n,t) from the preceding n polynomials.
The MRA is constructed by appending an n! to the left of the n-th row of the Riordan array A129652 and removing the unit diagonal.
The MRA is partially
1;
1, 1;
2, 3, 2;
6, 13, 9, 3;
24, 73, 52, 18, 4;
120, 501, 365, 130, 30, 5;
720, 4051, 3006, 1095, 260, 45, 6;
For the MRA:
1) First column is the n!'s.
2) Second column is A000262.
Then, e.g., from the terms in the MRA,
P(0,t) = 0!*(t-1)^0 = 1 from the n=0 row,
P(1,t) = 1!*(t-1)^1 + 1*P(0,t) = t from the n=1 row,
P(2,t) = 2!*(t-1)^2 + 3*P(0,t)*(t-1)^1 + 2*P(1,t)
P(3,t) = 3!*(t-1)^3 + 13*P(0,t)*(t-1)^2 + 9*P(1,t)*(t-1)^1 + 3*P(2,t)
generating
P(0,t) = (1)
P(1,t) = (0, 1)
P(2,t) = (-1, 1, 2)
P(3,t) = (4, -14, 10, 6) = 4 + -14 t + 10 t^2 + 6 t^3
P(4,t) = (-15, 83, -157, 89, 24)
P(5,t) = (56, -424, 1266, -1724, 826, 120)
P(6,t) = (-185, 1887, -8038, 17642, -19593, 8287, 720)
P(7,t) = (204, -4976, 36226, -126944, 239576, -234688, 90602, 5040)
For the polynomial array:
1) The first column is A009940 = (-1)^n * n!*Lag(n,1) =(-1)^n* n!* Lag(n,-1,-1).
2) Row sums are n!.
3) Highest order coefficient is n!.
4) Alternating row sum is below.
Then, with Rf(n,t) = [ t/(1-t)^(n+1) ] * P(n,t)/n!, the polylogs are given umbrally by
Li(-n,t)/n! = [ 1 + Rf(.,t) ]^n for n = 0,1,2,... so conversely
Rf(n,t) = {[ Li(-(.),t))/(.)! ]-1}^n.
Note umbrally [ Rf(.,t) ]^n = Rf(n,t) and
(1+Rf)^0 = 1^0 * [ Rf(.,t) ]^0 = Rf(0,t) = t/(1-t) = Li(0,t).
More generally, Newton interpolation holds and for Re(s) >= 0,
Li(-s,t)/(s)! = [ 1 + Rf(.,t) ]^s, when convergent in t.
Alternatively, the Rf's may be formed through differentiation of their o.g.f., the Rgf(z,t) above, which may also be written as
Rgf(z,t) = Sum_{k>=1} [ t^k ] * exp[ k * z/(z+1) ]/(z+1)
= Sum_{n>=0} [ (-z)^n ] * Sum_{k>=1} [ (t^k * Lag(n,k) ]
= Sum_{k>=0} [ (-z)^k ] * Lag(k,Li(-(.),t))
= Sum_{k>=0} [ z^k ] * {[ Li(-(.),t))/(.)! ]-1}^k
= exp[ Li(-(.),t)*z/(1+z) ]/(1+z),
and operationally as
Rgf(z,t) = {Sum_{k>=0} (-z)^k * Lag(k,tD)} [ t/(1-t) ]
= {Sum_{k>=0} (-z)^k * Lag(k,T(.,:tD:))} [ t/(1-t) ]
= {Sum_{k>=0} (-z)^k * Sum_{j>=0} Lag(k,j) (tD)^j /j!} [ x/(1-x) ]
where D is w.r.t. x at 0
= {Sum_{k>=0} (-z)^k*Sum_{j=0..k} (-1)^j*[ 1-Lag(k,.) ]^j*(:tD:)^j/ j!} [ t/(1-t) ]
= {Sum_{k>=0} (-z)^k * exp[ -[ 1-Lag(k,.) ]* :tD: ]} [ t/(1-t) ]
where (:tD:)^n = t^n * D^n, D is the derivative w.r.t. t unless otherwise stated, Lag(n,x) is a Laguerre polynomial and T(n,t) is a Touchard / Bell / exponential polynomial.
Hence [ t/(1-t)^(n+1) ] * P(n,t)/n! = Rf(n,t)
= {Sum_{k=0..n} (-1)^n-k)*[ C(m,k)/k! ]*(tD)^k} [ t/(1-t) ]
= {Sum_{k=0..n} (-1)^(n-k)*[ C(m,k)/k! ]*Sum_{j=0..k} S2(k,j)*(:tD:)^j} [ t/(1-t) ]
= {Sum_{k>=0} (-1)^(n-k) * Lag(n,k) * (tD)^k/k!} [ x/(1-x) ] where D is w.r.t. x at 0
= {Sum_{k=0..n} (-1)^(n-k)* [ 1-Lag(n,.) ]^k *(:tD:)^k/k!}[ t/(1-t) ],
where S2(k,j) are the Stirling numbers of the second kind and C(m,k), binomial coefficients.
The P(n,t) are related to the Laguerre polynomials through
P(n,t) = (-1)^n n! [ (1-t)^(n+1)} ] Sum_{k>=0} [ (t^k*Lag(n,k+1) ] = Sum_{m=0..n} a(n,m) * t^m
where a(n,m) = (-1)^n n! [ Sum_{k=0..m} (-1)^k * C(n+1,k) *Lag(n,m-k+1) ] .
Conjecture for the polynomial array:
The greatest common divisor of the coefficients of each polynomial is given by A060872(n)/n or, equivalently, by A038548(n).
Some e.g.f.'s for the Rf's are
exp[ -Rf(.,t)*z ] = exp{[ 1-Li(-(.),t)/(.)! ]*z}
= Sum_{n>=0} { (z^n/n!) * Sum_{k>=1} [ t^k * Lag(n,k) ] }
= Sum_{k>=1} { t^k * (e^z) * J_0[ 2*sqrt(k*z)}
= Sum_{n>=0} {(-1)^n*(z^n/n!)*(z^/j!)*Lag(n,-1)*Sum_{k>=1} [ t^k*k^n*(k+1)^j ]}
where J_0(x) is the zeroth Bessel function of the first kind.
The expressions (:tD:)^j}[ t/(1-t) ] and the Laguerre polynomials are intimately connected to Lah numbers and rook polynomials.
Some interesting relations to physics, probability and number theory are, for abs(t) < 1 and abs(z) < 1 at least,
BE(t,z) = Sum_{k>=0} [ (-z)^k ] *[ 1 + Rf(.,t) ]^k
= Rgf(-z/(1+z),t)/(1+z) = t/{exp(z)-t}, a Bose-Einstein distribution,
FD(t,z) = Sum_{k>=0} [ (-z)^k+1 ] *[ 1 + Rf(.,-t) ]^k
= -Rgf(-z/(1+z),-t)/(1+z) = t/{exp(z)+t}, a Fermi-Dirac distribution
and as t tends to 1 from below, z*BE(t,z) tends to the Bernoulli e.g.f., which is related by the Mellin transform to (s-1)!*Zeta(s). Taking Mellin transforms of BE and FD w.r.t. z gives the polylogarithm over different domains.
Since BE(2,z) is essentially the e.g.f. for the ordered Bell numbers, it follows that umbrally
n! * Lag(n,OB(.)) = P(n,2) and
n! * Lag(n,P(.,2)) = OB(n)
where OB(n) are the signed ordered Bell/Fubini numbers A000670.
I.e., P(n,2) and the ordered Bell numbers form a reciprocal Laguerre combinatorial transform pair,
or, equivalently, P(n,2)/n! and OB(n)/n! form a reciprocal finite difference pair, so
P(n,2)/n! = (-1)^(n+1) * Rf(n,2) = -{1-[ Li(-(.),2))/(.)! ]}^n and
OB(n) = -Li(-n,2).
Note that n!*Lag(n,(.)!*Lag(.,x)) = x^n is a true identity for general Laguerre polynomials Lag(n,x,a) with a = -1,0,1,..., so one could look at analogous higher-order reciprocal pairs containing OB(n).
In addition, a mixed-order iterated Laguerre transform gives
n!*Lag{n,(.)!*Lag[ .,P(.,2),0 ],-1}
= P(n,2) - n*P(n-1,2)
= n!*Lag[ n,OB(.),-1 ] = A084358(n), lists of sets of lists.
For Eulerian polynomials, E(n,t), given by A173018 (A008292),
E(n,t)/n! = [ 1-t+P(.,t)/(.)! ]^n
P(n,t)/n! = [ E(.,t)/(.)!-(1-t) ]^n, or equivalently
[ E(.,t)/(1-t) ]^n = n!*Lag[ n,-P(.,t)/(1-t) ]
[ -P(.,t)/(1-t) ]^n = n!*Lag[ n,E(.,t)/(1-t) ], a Laguerre transform pair.
Then from known relations for the Eulerian polynomials, the alternating row sum of the polynomial array is
P(n,-1) = (-2)^(n+1) * n! * Lag[ n,c(.)*Zeta(-(.)) ]
where c(n) = [ 2^(n+1) - 1 ] and Zeta is the Riemann zeta function. And so
Zeta(-n) = n! * Lag[ n,-P(.,-1)/2 ] / [ 2 - 2^(n+2) ],
which also holds, with the summation limit of Lag extended to infinity, for n = s, any complex number with Re(s) > 0.
Then from standard formulas for the signed Euler numbers EN(n), the Bernoulli numbers Ber(n), the Genocchi numbers GN(n), the Euler polynomials EP(n,t), the Eulerian polynomials E(n,t), the Touchard / Bell polynomials T(n,t) and the binomial C(x,y) = x!/[ (x-y)!*y! ]
2^(n+1) * (1-2^(n+1)) * (-1)^n * Zeta(-n)
= 2^(n+1) * (1-2^(n+1)) * Ber(n+1)/(n+1)
= [ -(1+EN(.)) ]^n
= 2^n * GN(n+1)/(n+1)
= 2^n * EP(n,0)
= (-1)^n * E(n,-1)
= (-2)^n * n! * Lag[ n,-P(.,-1)/2 ]
= (-2)^n * n! * C{T[ .,P(.,-1)/2 ] + n, n}
= an integer = Q(n)
These are related to the zag numbers A000182 by Zag(n) = abs[ Q(2*n-1) ]. And, abs[ Q(2*n-1) ] / 2^q(n) = Zag(n) / 2^q(n) = A002425(n) with q(n) = A101921.
These may be generalized by letting n = s, a complex number, (or interpolating) to obtain generalized Laguerre functions or confluent hypergeometric functions of the first kind, M(a,b,x), or second kind, U(a,b,x), whose arguments are P(.,-1)/2, such as
E(s,-1)/[ 2^s*s! ] = -2*Li(-s,-1)/s! = (2-2^(s+2)) * Zeta(-s)/s!
= C{T[ .,P(.,-1)/2 ] + s, s} = Lag[ s,-P(.,-1)/2 ] = M[ -s,1,-P(.,-1)/2 ] or,
GN(s+1)/(s+1)! = EP(s,0)/s! = C{-T[ .,P(.,-1)/2 ]-1, n} = U[ -s,1,-P(.,-1)/2 ]/(s)!
And even more generally
E(s,t)/(1-t)^s = [ (1-t)/t ] Li(-s,t) = s!*Lag[ s,-P(.,t)/(1-t) ]
= s! * C{T[ .,P(.,t)/(1-t) ] + s, s} = s! * M[ -s,1,-P(.,t)/(1-t) ] .
The Laguerre polynomial expressions are fundamental as they can be interpolated to form general M[ a,b,-P(.,t)/(1-t) ] or U[ a,b,-P(.,t)/(1-t) ] which can then be related either directly or by binomial transforms to many important Sheffer sequences, not to mention group theory and Riemann surfaces.
Note for frequently occurring expressions above: The Laguerre polynomials of order -1 and 0 are intimately connected to Lah numbers and rook polynomials and (tD)^n [t/(1-t)] = T(n,:tD:) [t/(1-t)] generates an Eulerian polynomial in the numerator of a rational function. - Tom Copeland, Sep 09 2008
The deformed Todd operator on p. 12 of Gunnells and Villegas is Td(a,D) = -D / (a*exp(-D) - 1) = [-D/(1-D)] * Rgf(D/(1-D), 1/a) = -D * BE(1/a,-D) = D * FD(-1/a,-D), where BE and FD are the Bose-Einstein and Fermi-Dirac distributions given above. See also connections among the Eulerian polynomials, Ehrhart polynomials, and the Todd operator in Beck and Robins, especially pages 31 and 37. - Tom Copeland, Jun 20 2017

References

  • M. Beck and S. Robins, Computing the Continuous Discretely, illustrated by D. Austin, Springer, 2007.

Crossrefs

Programs

  • Mathematica
    a[n_, m_] := (-1)^n *n!*Sum[(-1)^k*Binomial[n+1, k]*LaguerreL[n, m-k+1], {k, 0, m}]; Table[a[n, m], {n, 0, 8}, {m, 0, n}] // Flatten (* Jean-François Alcover, Apr 23 2014 *)

Formula

a(n,m) = (-1)^n*n!*Sum_{k=0..m} (-1)^k*C(n+1,k)*Lag(n, m-k+1).

Extensions

A173018 given as reference for Eulerian polynomials and typo in a Laguerre function corrected by Tom Copeland, Oct 02 2014

A060866 Sum of (d+d') over all unordered pairs (d,d') with d*d' = n.

Original entry on oeis.org

2, 3, 4, 9, 6, 12, 8, 15, 16, 18, 12, 28, 14, 24, 24, 35, 18, 39, 20, 42, 32, 36, 24, 60, 36, 42, 40, 56, 30, 72, 32, 63, 48, 54, 48, 97, 38, 60, 56, 90, 42, 96, 44, 84, 78, 72, 48, 124, 64, 93, 72, 98, 54, 120, 72, 120, 80, 90, 60, 168, 62, 96, 104, 135, 84, 144, 68, 126, 96
Offset: 1

Views

Author

Jason Earls, May 04 2001

Keywords

Comments

Paraphrasing the Jovovic formula: if n is not a square then a(n) = sigma(n), the sum of divisors of n, otherwise a(n) = sigma(n) + sqrt(n). - Omar E. Pol, Jun 23 2009
Row sums of A161901. - Omar E. Pol, Jan 06 2014

Examples

			a(4)=9 because pairs of factors are 1*4 and 2*2 and 1+4+2+2=9. a(6)=12 because pairs of factors are 1*6 and 2*3 and 1+6+2+3=12.
		

Crossrefs

Programs

  • Maple
    A060866 := proc(n)
            numtheory[sigma](n) ;
            if issqr(n) then
                    %+sqrt(n) ;
            else
                    % ;
            end if;
    end proc: # R. J. Mathar, Oct 24 2011
  • Mathematica
    Table[Sum[(i^2 + n) (1 - Ceiling[n/i] + Floor[n/i])/i, {i, Floor[Sqrt[n]]}], {n, 100}] (* Wesley Ivan Hurt, Jul 14 2014 *)
    Array[If[IntegerQ@ #2, #3 + #2, #3] & @@ {#, Sqrt@ #, DivisorSigma[1, #]} &, 69] (* Michael De Vlieger, Nov 23 2017 *)
  • PARI
    A037213(n) = if(issquare(n,&n),n,0);
    A060866(n) = (sigma(n)+A037213(n)); \\ Antti Karttunen, Nov 23 2017, after Jan 25 2003 formula of Vladeta Jovovic

Formula

a(n) = A066839(n)+A070038(n) = A000203(n)+A037213(n). G.f.: Sum_{n>0} n*x^n*(x^(n*(n-1))-x^(n^2)+1)/(1-x^n). - Vladeta Jovovic, Jan 25 2003
a(n) = sum_{i=1..floor(sqrt(n))} (n+i^2)*(1-ceiling(n/i)+floor(n/i))/i. - Wesley Ivan Hurt, Jul 14 2014

Extensions

More terms from Erich Friedman, Jun 03 2001

A083356 Total area of all incongruent integer-sided rectangles of area <= n.

Original entry on oeis.org

0, 1, 3, 6, 14, 19, 31, 38, 54, 72, 92, 103, 139, 152, 180, 210, 258, 275, 329, 348, 408, 450, 494, 517, 613, 663, 715, 769, 853, 882, 1002, 1033, 1129, 1195, 1263, 1333, 1513, 1550, 1626, 1704, 1864, 1905, 2073, 2116, 2248, 2383, 2475, 2522, 2762, 2860
Offset: 0

Views

Author

Dean Hickerson, Apr 26 2003

Keywords

Examples

			a(5)=19, the rectangles being 1 X 1, 1 X 2, 1 X 3, 1 X 4, 1 X 5 and 2 X 2.
		

Crossrefs

Partial sums of A060872.

Programs

  • Mathematica
    a[n_] := Sum[r(r+Floor[n/r])(Floor[n/r]+1-r), {r, 1, Floor[Sqrt[n]]}]/2
  • Python
    from math import isqrt
    def A083356(n): return (k:=isqrt(n))*(k+1)*(2+4*k-3*k*(k+1))//24+sum(i*(m:=n//i)*(1+m)>>1 for i in range(1,k+1)) # Chai Wah Wu, Jul 11 2023

Formula

a(n) = Sum_{k=1..n} k*ceiling(d(k)/2), where d(k)=A000005(k) is the number of divisors of k.
a(n) = Sum_{r=1..floor(sqrt(n))} r*(r+floor(n/r))*(floor(n/r)+1-r)/2.
a(n) = ( A143127(n) + A000330(floor(sqrt(n))) ) / 2. - Max Alekseyev, Jan 31 2012
a(n) ~ n^2 * log(n) / 4
G.f.: x*f'(x)/(1 - x), where f(x) = Sum_{k>=1} x^k^2/(1 - x^k). - Ilya Gutkovskiy, Apr 12 2017

A327262 a(n) is the sum of all parts of all partitions of n into consecutive parts that differ by 4.

Original entry on oeis.org

1, 2, 3, 4, 5, 12, 7, 16, 9, 20, 11, 24, 13, 28, 30, 32, 17, 54, 19, 40, 42, 44, 23, 72, 25, 52, 54, 84, 29, 90, 31, 96, 66, 68, 35, 144, 37, 76, 78, 120, 41, 126, 43, 132, 135, 92, 47, 192, 49, 150, 102, 156, 53, 162, 110, 168, 114, 116, 59, 300, 61, 124, 126, 192, 130, 264, 67, 204, 138, 210
Offset: 1

Views

Author

Omar E. Pol, Apr 30 2020

Keywords

Comments

The one-part partition n = n is included in the count.

Examples

			For n = 28 there are three partitions of 28 into consecutive parts that differ by 4, including 28 as a valid partition. They are [28], [16, 12] and [13, 9, 5, 1]. The sum of the parts is [28] + [16 + 12] + [13 + 9 + 5 + 1] = 84, so a(28) = 84.
		

Crossrefs

Sequences of the same family where the parts differs by k are: A038040 (k=0), A245579 (k=1), A060872 (k=2), A334463 (k=3), this sequence (k=4), A334733 (k=5).

Programs

  • Mathematica
    pn4[n_]:=Total[Flatten[Select[IntegerPartitions[n],Union[Abs[Differences[#]]]=={4}&]]]+n; Array[pn4,70] (* Harvey P. Dale, Nov 26 2023 *)

Formula

a(n) = n*A334461(n).

A334953 a(n) is the sum of all parts of all partitions of n into consecutive parts that differ by 6.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 16, 9, 20, 11, 24, 13, 28, 15, 32, 17, 36, 19, 40, 42, 44, 23, 72, 25, 52, 54, 56, 29, 90, 31, 64, 66, 68, 35, 108, 37, 76, 78, 120, 41, 126, 43, 132, 90, 92, 47, 192, 49, 100, 102, 156, 53, 162, 55, 168, 114, 116, 59, 240, 61, 124, 126, 192, 130, 198, 67, 204, 138, 210
Offset: 1

Views

Author

Omar E. Pol, May 27 2020

Keywords

Comments

The one-part partition n = n is included in the count.

Examples

			For n = 24 there are three partitions of 24 into consecutive parts that differ by 6, including 24 as a valid partition. They are [24], [15, 9] and [14, 8, 2]. The sum of all parts is [24] + [15 + 9] + [14 + 8 + 2] = 72, so a(24) = 72.
		

Crossrefs

Sequences of the same family where the parts differs by k are: A038040 (k=0), A245579 (k=1), A060872 (k=2), A334463 (k=3), A327262 (k=4), A334733 (k=5), this sequence (k=6).

Formula

a(n) = n*A334948(n).

A334463 a(n) is the sum of all parts of all partitions of n into consecutive parts that differ by 3.

Original entry on oeis.org

1, 2, 3, 4, 10, 6, 14, 8, 18, 10, 22, 24, 26, 14, 45, 16, 34, 36, 38, 20, 63, 44, 46, 48, 50, 52, 81, 28, 58, 90, 62, 32, 99, 68, 105, 72, 74, 76, 117, 80, 82, 126, 86, 44, 180, 92, 94, 96, 98, 150, 204, 52, 106, 162, 165, 56, 228, 116, 118, 180, 122, 124, 252, 64, 195, 198, 134, 68, 276, 280, 142, 144
Offset: 1

Views

Author

Omar E. Pol, May 05 2020

Keywords

Comments

The one-part partition n = n is included in the count.

Examples

			For n = 21 there are three partitions of 21 into consecutive parts that differ by 3, including 21 as a valid partition. They are [21], [12, 9] and [10, 7, 4]. The sum of the parts is [21] + [12 + 9] + [10 + 7 + 4] = 63, the same as 3*21 = 63, since there are three of these partitions of 21, so a(21) = 63.
		

Crossrefs

Sequences of the same family where the parts differs by k are: A038040 (k=0), A245579 (k=1), A060872 (k=2), this sequence (k=3), A327262 (k=4).

Formula

a(n) = n*A117277(n).

A334733 a(n) is the sum of all parts of all partitions of n into consecutive parts that differ by 5.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 14, 8, 18, 10, 22, 12, 26, 14, 30, 16, 34, 36, 38, 20, 63, 22, 46, 48, 50, 26, 81, 28, 58, 60, 62, 32, 99, 68, 70, 72, 74, 76, 117, 40, 82, 126, 86, 44, 135, 92, 94, 96, 98, 100, 153, 52, 106, 162, 165, 56, 171, 116, 118, 180, 122, 124, 189, 64, 195, 198, 134, 68, 207, 210
Offset: 1

Views

Author

Omar E. Pol, May 09 2020

Keywords

Comments

The one-part partition n = n is included in the count.

Examples

			For n = 27 there are three partitions of 27 into consecutive parts that differ by 5, including 27 as a valid partition. They are [27], [16, 11] and [14, 9, 4]. The sum of all parts is [27] + [16 + 11] + [14 + 9 + 4] = 81, so a(27) = 81.
		

Crossrefs

Sequences of the same family where the parts differs by k are: A038040 (k=0), A245579 (k=1), A060872 (k=2), A334463 (k=3), A327262 (k=4), this sequence (k=5).

Formula

a(n) = n*A334541(n).

A332266 Irregular triangle read by rows: T(n,k), n >= 1, k >= 1, in which column k lists successive blocks of k consecutive integers that differ by 2, where the m-th block starts with m, m >= 1, and the first element of column k is in row k^2.

Original entry on oeis.org

1, 2, 3, 4, 1, 5, 3, 6, 2, 7, 4, 8, 3, 9, 5, 1, 10, 4, 3, 11, 6, 5, 12, 5, 2, 13, 7, 4, 14, 6, 6, 15, 8, 3, 16, 7, 5, 1, 17, 9, 7, 3, 18, 8, 4, 5, 19, 10, 6, 7, 20, 9, 8, 2, 21, 11, 5, 4, 22, 10, 7, 6, 23, 12, 9, 8, 24, 11, 6, 3, 25, 13, 8, 5, 1, 26, 12, 10, 7, 3, 27, 14, 7, 9, 5
Offset: 1

Views

Author

Omar E. Pol, Feb 08 2020

Keywords

Comments

This triangle can be interpreted as a table of partitions into consecutive parts that differ by 2 (see the Example section).

Examples

			Triangle begins:
   1;
   2;
   3;
   4,  1;
   5,  3;
   6,  2;
   7,  4;
   8,  3;
   9,  5,  1;
  10,  4,  3;
  11,  6,  5;
  12,  5,  2;
  13,  7,  4;
  14,  6,  6;
  15,  8,  3;
  16,  7,  5,  1;
  17,  9,  7,  3;
  18,  8,  4,  5;
  19, 10,  6,  7;
  20,  9,  8,  2;
  21, 11,  5,  4;
  22, 10,  7,  6;
  23, 12,  9,  8;
  24, 11,  6,  3;
  25, 13,  8,  5,  1;
...
Figures A..G show the location (in the columns of the table) of the partitions of n = 1..7 (respectively) into consecutive parts that differ by 2:
.   ---------------------------------------------------------
Fig:   A     B     C       D         E        F         G
.   ---------------------------------------------------------
. n:   1     2     3       4         5        6         7
Row ---------------------------------------------------------
1   | [1];|  1; |  1; |  1;     |  1;    |  1;     |  1;    |
2   |     | [2];|  2; |  2;     |  2;    |  2;     |  2;    |
3   |     |     | [3];|  3;     |  3;    |  3;     |  3;    |
4   |     |     |     | [4],[1];|  4,  1;|  4,  1; |  4,  1;|
5   |     |     |     |  5, [3];| [5], 3;|  5,  3; |  5,  3;|
6   |     |     |     |         |        | [6],[2];|  6,  2;|
7   |     |     |     |         |        |  7, [4];| [7], 4;|
.   ---------------------------------------------------------
Figure F: for n = 6 the partitions of 6 into consecutive parts that differ by 2 (but with the parts in increasing order) are [6] and [2, 4]. These partitions have one part and two parts respectively. On the other hand we can find the mentioned partitions in the columns 1 and 2 of this table, starting at the row 6.
.
Figures H..L show the location (in the columns of the table) of the partitions of 8..12 (respectively) into consecutive parts that differ by 2:
.    -----------------------------------------------------------------------
Fig:        H            I            J              K             L
.    -----------------------------------------------------------------------
. n:        8            9            10             11            12
Row  -----------------------------------------------------------------------
1    |  1;        |  1;         |   1;        |   1;        |   1;         |
1    |  2;        |  2;         |   2;        |   2;        |   2;         |
3    |  3;        |  3;         |   3;        |   3;        |   3;         |
4    |  4,  1;    |  4,  1;     |   4,  1;    |   4,  1;    |   4,  1;     |
5    |  5,  3;    |  5,  3;     |   5,  3;    |   5,  3;    |   5,  3;     |
6    |  6,  2;    |  6,  2;     |   6,  2;    |   6,  2;    |   6,  2;     |
7    |  7,  4;    |  7,  4;     |   7,  4;    |   7,  4;    |   7,  4;     |
8    | [8],[3];   |  8,  3;     |   8,  3;    |   8,  3;    |   8,  3;     |
9    |  9, [5], 1;| [9], 5, [1];|   9,  5,  1;|   9,  5,  1;|   9,  5,  1; |
10   |            | 10,  4, [3];| [10],[4], 3;|  10,  4,  3;|  10,  4;  3; |
11   |            | 11,  6, [5];|  11, [6], 5;| [11], 6,  5,|  11,  6;  5; |
12   |            |             |             |             | [12],[5],[2];|
13   |            |             |             |             |  13, [7],[4];|
14   |            |             |             |             |  14,  6, [6];|
.    -----------------------------------------------------------------------
Figure I: for n = 9 the partitions of 9 into consecutive parts that differ by 2(but with the parts in increasing order) are [9] and [1, 3, 5]. These partitions have one part and three parts respectively. On the other hand, we can find the mentioned partitions in the columns 1 and 3 of this table, starting at the row 9.
.
Illustration of initial terms arranged into a triangular structure:
.                                                           _
.                                                         _|1|
.                                                       _|2  |
.                                                     _|3   _|
.                                                   _|4    |1|
.                                                 _|5     _|3|
.                                               _|6      |2  |
.                                             _|7       _|4  |
.                                           _|8        |3   _|
.                                         _|9         _|5  |1|
.                                       _|10         |4    |3|
.                                     _|11          _|6   _|5|
.                                   _|12           |5    |2  |
.                                 _|13            _|7    |4  |
.                               _|14             |6     _|6  |
.                             _|15              _|8    |3   _|
.                           _|16               |7      |5  |1|
.                         _|17                _|9     _|7  |3|
.                       _|18                 |8      |4    |5|
.                     _|19                  _|10     |6   _|7|
.                   _|20                   |9       _|8  |2  |
.                 _|21                    _|11     |5    |4  |
.               _|22                     |10       |7    |6  |
.             _|23                      _|12      _|9   _|8  |
.           _|24                       |11       |6    |3   _|
.          |25                         |13       |8    |5  |1|
...
The number of horizontal line segments in the n-th row of the diagram equals A038548(n), the number of partitions of n into consecutive parts that differ by 2.
		

Crossrefs

Tables of the same family where the consecutive parts differ by d are A010766 (d=0), A286001 (d=1), this sequence (d=2), A334945 (d=3), A334618(d=4).

A334467 Square array read by antidiagonals upwards: T(n,k) is the sum of all parts of all partitions of n into consecutive parts that differ by k, with n >= 1, k >= 0.

Original entry on oeis.org

1, 4, 1, 6, 2, 1, 12, 6, 2, 1, 10, 4, 3, 2, 1, 24, 10, 8, 3, 2, 1, 14, 12, 5, 4, 3, 2, 1, 32, 14, 12, 10, 4, 3, 2, 1, 27, 8, 7, 6, 5, 4, 3, 2, 1, 40, 27, 16, 14, 12, 5, 4, 3, 2, 1, 22, 20, 18, 8, 7, 6, 5, 4, 3, 2, 1, 72, 22, 20, 18, 16, 14, 6, 5, 4, 3, 2, 1, 26, 24, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
Offset: 1

Views

Author

Omar E. Pol, May 05 2020

Keywords

Examples

			Array begins:
     k  0   1   2   3   4   5   6   7   8   9  10
   n +------------------------------------------------
   1 |  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1, ...
   2 |  4,  2,  2,  2,  2,  2,  2,  2,  2,  2,  2, ...
   3 |  6,  6,  3,  3,  3,  3,  3,  3,  3,  3,  3, ...
   4 | 12,  4,  8,  4,  4,  4,  4,  4,  4,  4,  4, ...
   5 | 10, 10,  5, 10,  5,  5,  5,  5,  5,  5,  5, ...
   6 | 24, 12, 12,  6, 12,  6,  6,  6,  6,  6,  6, ...
   7 | 14, 14,  7, 14,  7, 14,  7,  7,  7,  7,  7, ...
   8 | 32,  8, 16,  8, 16,  8, 16,  8,  8,  8,  8, ...
   9 | 27, 27, 18, 18,  9, 18,  9, 18,  9,  9,  9, ...
  10 | 40, 20, 20, 10, 20, 20, 20, 10, 20, 10, 10, ...
...
		

Crossrefs

Columns k: A038040 (k=0), A245579 (k=1), A060872 (k=2), A334463 (k=3), A327262 (k=4), A334733 (k=5), A334953 (k=6).
Every diagonal starting with 1 gives A000027.
Sequences of number of parts related to column k: A000203 (k=0), A204217 (k=1), A066839 (k=2) (conjectured), A330889 (k=3), A334464 (k=4), A334732 (k=5), A334949 (k=6).
Sequences of number of partitions related to column k: A000005 (k=0), A001227 (k=1), A038548 (k=2), A117277 (k=3), A334461 (k=4), A334541 (k=5), A334948 (k=6).
Polygonal numbers related to column k: A001477 (k=0), A000217 (k=1), A000290 (k=2), A000326 (k=3), A000384 (k=4), A000566 (k=5), A000567 (k=6).

Programs

  • Mathematica
    nmax = 13;
    col[k_] := col[k] = CoefficientList[Sum[x^(n(k n - k + 2)/2 - 1)/(1 - x^n), {n, 1, nmax}] + O[x]^nmax, x];
    T[n_, k_] := n col[k][[n]];
    Table[T[n-k, k], {n, 1, nmax}, {k, 0, n-1}] // Flatten (* Jean-François Alcover, Nov 30 2020 *)

Formula

T(n,k) = n*A323345(n,k).
Showing 1-10 of 10 results.