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-3 of 3 results.

A007559 Triple factorial numbers (3*n-2)!!! with leading 1 added.

Original entry on oeis.org

1, 1, 4, 28, 280, 3640, 58240, 1106560, 24344320, 608608000, 17041024000, 528271744000, 17961239296000, 664565853952000, 26582634158080000, 1143053268797440000, 52580450364682240000, 2576442067869429760000, 133974987529210347520000, 7368624314106569113600000
Offset: 0

Views

Author

Keywords

Comments

a(n) is the number of increasing quaternary trees on n vertices. (See A001147 for ternary and A000142 for binary trees.) - David Callan, Mar 30 2007
a(n) is the product of the positive integers k <= 3*n that have k modulo 3 = 1. - Peter Luschny, Jun 23 2011
See A094638 for connections to differential operators. - Tom Copeland, Sep 20 2011
Partial products of A016777. - Reinhard Zumkeller, Sep 20 2013
For n > 2, a(n) is a Zumkeller number. - Ivan N. Ianakiev, Jan 28 2020
a(n) is the number of generalized permutations of length n related to the degenerate Eulerian numbers (see arXiv:2007.13205), cf. A336633. - Orli Herscovici, Jul 28 2020

Examples

			G.f. = 1 + x + 4*x^2 + 28*x^3 + 280*x^4 + 3640*x^5 + 58240*x^6 + ...
a(3) = 28 and a(4) = 280; with top row of M^3 = (28, 117, 108, 27), sum = 280.
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

a(n)= A035469(n, 1), n >= 1, (first column of triangle A035469(n, m)).
Cf. A107716. - Gary W. Adamson, Oct 22 2009
Cf. A095660. - Gary W. Adamson, Jul 19 2011
Subsequence of A007661. A007696, A008548.
a(n) = A286718(n,0), n >= 0.
Row sums of A336633.

Programs

  • GAP
    List([0..20], n-> Product([0..n-1], k-> 3*k+1 )); # G. C. Greubel, Aug 20 2019
  • Haskell
    a007559 n = a007559_list !! n
    a007559_list = scanl (*) 1 a016777_list
    -- Reinhard Zumkeller, Sep 20 2013
    
  • Magma
    b:= func< n | (n lt 2) select n else (3*n-2)*Self(n-1) >;
    [1] cat [b(n): n in [1..20]]; // G. C. Greubel, Aug 20 2019
    
  • Maple
    A007559 := n -> mul(k, k = select(k-> k mod 3 = 1, [$1 .. 3*n])): seq(A007559(n), n = 0 .. 17); # Peter Luschny, Jun 23 2011
    # second Maple program:
    b:= proc(n) option remember; `if`(n<1, 1, n*b(n-3)) end:
    a:= n-> b(3*n-2):
    seq(a(n), n=0..20);  # Alois P. Heinz, Dec 18 2024
  • Mathematica
    a[ n_] := If[ n < 0, 1 / Product[ k, {k, - 2, 3 n - 1, -3}],
      Product[ k, {k, 1, 3 n - 2, 3}]]; (* Michael Somos, Oct 14 2011 *)
    FoldList[Times,1,Range[1,100,3]] (* Harvey P. Dale, Jul 05 2013 *)
    Range[0, 19]! CoefficientList[Series[((1 - 3 x)^(-1/3)), {x, 0, 19}], x] (* Vincenzo Librandi, Oct 08 2015 *)
  • Maxima
    a(n):=if n=1 then 1 else (n)!*(sum(m/n*sum(binomial(k,n-m-k)*(-1/3)^(n-m-k)* binomial (k+n-1,n-1),k,1,n-m),m,1,n)+1); /* Vladimir Kruchinin, Aug 09 2010 */
    
  • PARI
    {a(n) = if( n<0, (-1)^n / prod(k=0,-1-n, 3*k + 2), prod(k=0, n-1, 3*k + 1))}; /* Michael Somos, Oct 14 2011 */
    
  • PARI
    my(x='x+O('x^33)); Vec(serlaplace((1-3*x)^(-1/3))) /* Joerg Arndt, Apr 24 2011 */
    
  • Sage
    def A007559(n) : return mul(j for j in range(1,3*n,3))
    [A007559(n) for n in (0..17)]  # Peter Luschny, May 20 2013
    

Formula

a(n) = Product_{k=0..n-1} (3*k + 1).
a(n) = (3*n - 2)!!!.
a(n) = A007661(3*n-2).
E.g.f.: (1-3*x)^(-1/3).
a(n) ~ sqrt(2*Pi)/Gamma(1/3)*n^(-1/6)*(3*n/e)^n*(1 - (1/36)/n - ...). - Joe Keane (jgk(AT)jgk.org), Nov 22 2001
a(n) = 3^n*Pochhammer(1/3, n).
a(n) = Sum_{k=0..n} (-3)^(n-k)*A048994(n, k). - Philippe Deléham, Oct 29 2005
a(n) = n!*(1+Sum_{m=1..n} (m/n)*Sum_{k=1..n-m} binomial(k, n-m-k)*(-1/3)^(n-m-k)*binomial(k+n-1, n-1)), n>1. - Vladimir Kruchinin, Aug 09 2010
From Gary W. Adamson, Jul 19 2011: (Start)
a(n) = upper left term in M^n, M = a variant of Pascal (1,3) triangle (Cf. A095660); as an infinite square production matrix:
1, 3, 0, 0, 0,...
1, 4, 3, 0, 0,...
1, 5, 7, 3, 0,...
...
a(n+1) = sum of top row terms of M^n. (End)
a(n) = (-2)^n*Sum_{k=0..n} (3/2)^k*s(n+1,n+1-k), where s(n,k) are the Stirling numbers of the first kind, A048994. - Mircea Merca, May 03 2012
G.f.: 1/Q(0) where Q(k) = 1 - x*(3*k+1)/( 1 - x*(3*k+3)/Q(k+1) ); (continued fraction). - Sergei N. Gladkovskii, Mar 21 2013
G.f.: G(0)/2, where G(k)= 1 + 1/(1 - x*(3*k+1)/(x*(3*k+1) + 1/G(k+1))); (continued fraction). - Sergei N. Gladkovskii, May 26 2013
E.g.f.: E(0)/2, where E(k)= 1 + 1/(1 - x*(3*k+1)/(x*(3*k+1) + (k+1)/E(k+1))); (continued fraction). - Sergei N. Gladkovskii, May 26 2013
Let D(x) = 1/sqrt(1 - 2*x) be the e.g.f. for the sequence of double factorial numbers A001147. Then the e.g.f. A(x) for the triple factorial numbers satisfies D( Integral_{t=0..x} A(t) dt ) = A(x). Cf. A007696 and A008548. - Peter Bala, Jan 02 2015
O.g.f.: hypergeom([1, 1/3], [], 3*x). - Peter Luschny, Oct 08 2015
a(n) = 3^n * Gamma(n + 1/3)/Gamma(1/3). - Artur Jasinski, Aug 23 2016
a(n) = (-1)^n / A008544(n), 0 = a(n)*(+3*a(n+1) -a(n+2)) +a(n+1)*a(n+1) for all n in Z. - Michael Somos, Sep 30 2018
D-finite with recurrence: a(n) +(-3*n+2)*a(n-1)=0, n>=1. - R. J. Mathar, Feb 14 2020
Sum_{n>=1} 1/a(n) = (e/9)^(1/3) * (Gamma(1/3) - Gamma(1/3, 1/3)). - Amiram Eldar, Jun 29 2020

Extensions

Better description from Wolfdieter Lang

A308168 Numbers m that cannot be represented as a k-tuple factorial b!k for any b and k < m-1.

Original entry on oeis.org

3, 4, 5, 7, 9, 11, 13, 17, 19, 23, 25, 29, 31, 35, 37, 41, 43, 47, 49, 53, 59, 61, 67, 71, 73, 77, 79, 83, 89, 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139, 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 187, 191, 193, 197, 199, 211, 221, 223, 227, 229, 233, 239, 241, 247, 251, 257, 263
Offset: 1

Views

Author

Elijah Beregovsky, May 15 2019

Keywords

Comments

If k >= m-1, then every number can be represented as a multifactorial: m = m!k.
The sequence contains only primes and numbers of the form p*q, where p and q are both prime and satisfy the inequalities p >= q and p-q < q-1.
Proof: If m has exactly two prime factors p and q (p > q), but p and q do not satisfy the second inequality, then m = p!(p-q). If, on the other hand, m has at least three factors a, b and c, (a >= b >= c > 1, m = a*b*c), then a*b-c > c-1, so m = (a*b)!(a*b-c).
Moreover, the sequence contains all numbers of that form. Proof: If they could be represented as a multifactorial, then it would be a (p-q)-tuple factorial. But as the second inequality is true, q-(p-q) is positive, therefore q-(p-q) should also divide m. But m has only two prime factors p and q, so the assumption is wrong and sequence indeed contains all numbers of that form.
1 and 2 are not in the sequence, because (-1)- and 0-tuple factorials are not defined.
Squarefree semiprimes that are in this sequence (35, 77, 143, 187, 209, 221, ...) are all in A259282 and they are the only semiprimes there. (See the Echi and Ghanmi reference for a proof.) - Elijah Beregovsky, Feb 05 2020

Examples

			15 is not in the sequence because 15 = 1*3*5 = 5!!.
35 is in the sequence because 35 = 7*5 and 7-5 < 5-1.
		

Crossrefs

A114423 Multifactorial array read by ascending antidiagonals.

Original entry on oeis.org

1, 1, 1, 2, 1, 1, 6, 2, 1, 1, 24, 3, 2, 1, 1, 120, 8, 3, 2, 1, 1, 720, 15, 4, 3, 2, 1, 1, 5040, 48, 10, 4, 3, 2, 1, 1, 40320, 105, 18, 5, 4, 3, 2, 1, 1, 362880, 384, 28, 12, 5, 4, 3, 2, 1, 1, 3628800, 945, 80, 21, 6, 5, 4, 3, 2, 1, 1, 39916800, 3840, 162, 32, 14, 6, 5, 4, 3, 2, 1, 1
Offset: 0

Views

Author

Jonathan Vos Post, Feb 12 2006

Keywords

Comments

The columns are n!, n!!, n!!!, ... n!k for n >= 0, k >= 1.

Examples

			Table M begins:
  n / M(n,k)
  0 |   1   1   1   1   1
  1 |   1   1   1   1   1
  2 |   2   2   2   2   2
  3 |   6   3   3   3   3
  4 |  24   8   4   4   4
  5 | 120  15  10   5   5
  6 | 720  48  18  12   6
		

Crossrefs

Cf. A000142 (n!), A006882 (n!!), A007661 (n!!!), A007662(n!4), A085157 (n!5), A085158 (n!6), A114799 (n!7), A114800 (n!8), A114806 (n!9), A288327 (n!10).
Cf. A129116 (transposed).

Programs

  • Mathematica
    NFactorialM[n_, m_] := Block[{k = n, p = Max[1, n]},
         While[k > m, k -= m; p *= k]; p];
    Table[NFactorialM[n - m + 1, m], {n, 1, 11}, {m, 1, n}] // Flatten (* Jean-François Alcover, Aug 01 2021, after Robert G. Wilson v in A007662 *)

Formula

M(n,k) = n!k.
M(n,k) = A129116(k,n). - Georg Fischer, Nov 02 2021

Extensions

Edited by Alois P. Heinz, Apr 24 2025
Showing 1-3 of 3 results.