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 27 results. Next

A000312 a(n) = n^n; number of labeled mappings from n points to themselves (endofunctions).

Original entry on oeis.org

1, 1, 4, 27, 256, 3125, 46656, 823543, 16777216, 387420489, 10000000000, 285311670611, 8916100448256, 302875106592253, 11112006825558016, 437893890380859375, 18446744073709551616, 827240261886336764177, 39346408075296537575424, 1978419655660313589123979
Offset: 0

Views

Author

Keywords

Comments

Also number of labeled pointed rooted trees (or vertebrates) on n nodes.
For n >= 1 a(n) is also the number of n X n (0,1) matrices in which each row contains exactly one entry equal to 1. - Avi Peretz (njk(AT)netvision.net.il), Apr 21 2001
Also the number of labeled rooted trees on (n+1) nodes such that the root is lower than its children. Also the number of alternating labeled rooted ordered trees on (n+1) nodes such that the root is lower than its children. - Cedric Chauve (chauve(AT)lacim.uqam.ca), Mar 27 2002
With p(n) = the number of integer partitions of n, p(i) = the number of parts of the i-th partition of n, d(i) = the number of different parts of the i-th partition of n, p(j, i) = the j-th part of the i-th partition of n, m(i, j) = multiplicity of the j-th part of the i-th partition of n, one has: a(n) = Sum_{i=1..p(n)} (n!/(Product_{j=1..p(i)} p(i, j)!)) * ((n!/(n - p(i)))!/(Product_{j=1..d(i)} m(i, j)!)). - Thomas Wieder, May 18 2005
All rational solutions to the equation x^y = y^x, with x < y, are given by x = A000169(n+1)/A000312(n), y = A000312(n+1)/A007778(n), where n = 1, 2, 3, ... . - Nick Hobson, Nov 30 2006
a(n) is the total number of leaves in all (n+1)^(n-1) trees on {0,1,2,...,n} rooted at 0. For example, with edges directed away from the root, the trees on {0,1,2} are {0->1,0->2},{0->1->2},{0->2->1} and contain a total of a(2)=4 leaves. - David Callan, Feb 01 2007
Limit_{n->infinity} A000169(n+1)/a(n) = exp(1). Convergence is slow, e.g., it takes n > 74 to get one decimal place correct and n > 163 to get two of them. - Alonso del Arte, Jun 20 2011
Also smallest k such that binomial(k, n) is divisible by n^(n-1), n > 0. - Michel Lagneau, Jul 29 2013
For n >= 2 a(n) is represented in base n as "one followed by n zeros". - R. J. Cano, Aug 22 2014
Number of length-n words over the alphabet of n letters. - Joerg Arndt, May 15 2015
Number of prime parking functions of length n+1. - Rui Duarte, Jul 27 2015
The probability density functions p(x, m=q, n=q, mu=1) = A000312(q)*E(x, q, q) and p(x, m=q, n=1, mu=q) = (A000312(q)/A000142(q-1))*x^(q-1)*E(x, q, 1), with q >= 1, lead to this sequence, see A163931, A274181 and A008276. - Johannes W. Meijer, Jun 17 2016
Satisfies Benford's law [Miller, 2015]. - N. J. A. Sloane, Feb 12 2017
A signed version of this sequence apart from the first term (1, -4, -27, 256, 3125, -46656, ...), has the following property: for every prime p == 1 (mod 2n), (-1)^(n(n-1)/2)*n^n = A057077(n)*a(n) is always a 2n-th power residue modulo p. - Jianing Song, Sep 05 2018
From Juhani Heino, May 07 2019: (Start)
n^n is both Sum_{i=0..n} binomial(n,i)*(n-1)^(n-i)
and Sum_{i=0..n} binomial(n,i)*(n-1)^(n-i)*i.
The former is the familiar binomial distribution of a throw of n n-sided dice, according to how many times a required side appears, 0 to n. The latter is the same but each term is multiplied by its amount. This means that if the bank pays the player 1 token for each die that has the chosen side, it is always a fair game if the player pays 1 token to enter - neither bank nor player wins on average.
Examples:
2-sided dice (2 coins): 4 = 1 + 2 + 1 = 1*0 + 2*1 + 1*2 (0 omitted from now on);
3-sided dice (3 long triangular prisms): 27 = 8 + 12 + 6 + 1 = 12*1 + 6*2 + 1*3;
4-sided dice (4 long square prisms or 4 tetrahedrons): 256 = 81 + 108 + 54 + 12 + 1 = 108*1 + 54*2 + 12*3 + 1*4;
5-sided dice (5 long pentagonal prisms): 3125 = 1024 + 1280 + 640 + 160 + 20 + 1 = 1280*1 + 640*2 + 160*3 + 20*4 + 1*5;
6-sided dice (6 cubes): 46656 = 15625 + 18750 + 9375 + 2500 + 375 + 30 + 1 = 18750*1 + 9375*2 + 2500*3 + 375*4 + 30*5 + 1*6.
(End)
For each n >= 1 there is a graph on a(n) vertices whose largest independent set has size n and whose independent set sequence is constant (specifically, for each k=1,2,...,n, the graph has n^n independent sets of size k). There is no graph of smaller order with this property (Ball et al. 2019). - David Galvin, Jun 13 2019
For n >= 2 and 1 <= k <= n, a(n)*(n + 1)/4 + a(n)*(k - 1)*(n + 1 - k)/2*n is equal to the sum over all words w = w(1)...w(n) of length n over the alphabet {1, 2, ..., n} of the following quantity: Sum_{i=1..w(k)} w(i). Inspired by Problem 12432 in the AMM (see links). - Sela Fried, Dec 10 2023
Also, dimension of the unique cohomology group of the smallest interval containing the poset of partitions decorated by Perm, i.e. the poset of pointed partitions. - Bérénice Delcroix-Oger, Jun 25 2025

Examples

			G.f. = 1 + x + 4*x^2 + 27*x^3 + 256*x^4 + 3125*x^5 + 46656*x^6 + 823543*x^7 + ...
		

References

  • F. Bergeron, G. Labelle and P. Leroux, Combinatorial Species and Tree-Like Structures, Cambridge, 1998, pp. 62, 63, 87.
  • L. Comtet, Advanced Combinatorics, Reidel, 1974, p. 173, #39.
  • A. P. Prudnikov, Yu. A. Brychkov and O.I. Marichev, "Integrals and Series", Volume 1: "Elementary Functions", Chapter 4: "Finite Sums", New York, Gordon and Breach Science Publishers, 1986-1992, Eq. (4.2.2.37)
  • N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

First column of triangle A055858. Row sums of A066324.
Cf. A001923 (partial sums), A002109 (partial products), A007781 (first differences), A066588 (sum of digits).
Cf. A056665, A081721, A130293, A168658, A275549-A275558 (various classes of endofunctions).

Programs

  • Haskell
    a000312 n = n ^ n
    a000312_list = zipWith (^) [0..] [0..]  -- Reinhard Zumkeller, Jul 07 2012
    
  • Maple
    A000312 := n->n^n: seq(A000312(n), n=0..17);
  • Mathematica
    Array[ #^# &, 16] (* Vladimir Joseph Stephan Orlovsky, May 01 2008 *)
    Table[Sum[StirlingS2[n, i] i! Binomial[n, i], {i, 0, n}], {n, 0, 20}] (* Geoffrey Critzer, Mar 17 2009 *)
    a[ n_] := If[ n < 1, Boole[n == 0], n^n]; (* Michael Somos, May 24 2014 *)
    a[ n_] := If[ n < 0, 0, n! SeriesCoefficient[ 1 / (1 + LambertW[-x]), {x, 0, n}]]; (* Michael Somos, May 24 2014 *)
    a[ n_] := If[n < 0, 0, n! SeriesCoefficient[ Nest[ 1 / (1 - x / (1 - Integrate[#, x])) &, 1 + O[x], n], {x, 0, n}]]; (* Michael Somos, May 24 2014 *)
    a[ n_] := If[ n < 0, 0, With[{m = n + 1}, m! SeriesCoefficient[ InverseSeries[ Series[ (x - 1) Log[1 - x], {x, 0, m}]], m]]]; (* Michael Somos, May 24 2014 *)
  • Maxima
    A000312[n]:=if n=0 then 1 else n^n$
    makelist(A000312[n],n,0,30); /* Martin Ettl, Oct 29 2012 */
    
  • PARI
    {a(n) = n^n};
    
  • PARI
    is(n)=my(b,k=ispower(n,,&b));if(k,for(e=1,valuation(k,b), if(k/b^e == e, return(1)))); n==1 \\ Charles R Greathouse IV, Jan 14 2013
    
  • PARI
    {a(n) = my(A = 1 + O(x)); if( n<0, 0, for(k=1, n, A = 1 / (1 - x / (1 - intformal( A)))); n! * polcoeff( A, n))}; /* Michael Somos, May 24 2014 */
    
  • Python
    def A000312(n): return n**n # Chai Wah Wu, Nov 07 2022

Formula

a(n-1) = -Sum_{i=1..n} (-1)^i*i*n^(n-1-i)*binomial(n, i). - Yong Kong (ykong(AT)curagen.com), Dec 28 2000
E.g.f.: 1/(1 + W(-x)), W(x) = principal branch of Lambert's function.
a(n) = Sum_{k>=0} binomial(n, k)*Stirling2(n, k)*k! = Sum_{k>=0} A008279(n,k)*A048993(n,k) = Sum_{k>=0} A019538(n,k)*A007318(n,k). - Philippe Deléham, Dec 14 2003
E.g.f.: 1/(1 - T), where T = T(x) is Euler's tree function (see A000169).
a(n) = A000169(n+1)*A128433(n+1,1)/A128434(n+1,1). - Reinhard Zumkeller, Mar 03 2007
Comment on power series with denominators a(n): Let f(x) = 1 + Sum_{n>=1} x^n/n^n. Then as x -> infinity, f(x) ~ exp(x/e)*sqrt(2*Pi*x/e). - Philippe Flajolet, Sep 11 2008
E.g.f.: 1 - exp(W(-x)) with an offset of 1 where W(x) = principal branch of Lambert's function. - Vladimir Kruchinin, Sep 15 2010
a(n) = (n-1)*a(n-1) + Sum_{i=1..n} binomial(n, i)*a(i-1)*a(n-i). - Vladimir Shevelev, Sep 30 2010
With an offset of 1, the e.g.f. is the compositional inverse ((x - 1)*log(1 - x))^(-1) = x + x^2/2! + 4*x^3/3! + 27*x^4/4! + .... - Peter Bala, Dec 09 2011
a(n) = denominator((1 + 1/n)^n) for n > 0. - Jean-François Alcover, Jan 14 2013
a(n) = A089072(n,n) for n > 0. - Reinhard Zumkeller, Mar 18 2013
a(n) = (n-1)^(n-1)*(2*n) + Sum_{i=1..n-2} binomial(n, i)*(i^i*(n-i-1)^(n-i-1)), n > 1, a(0) = 1, a(1) = 1. - Vladimir Kruchinin, Nov 28 2014
log(a(n)) = lim_{k->infinity} k*(n^(1+1/k) - n). - Richard R. Forberg, Feb 04 2015
From Ilya Gutkovskiy, Jun 18 2016: (Start)
Sum_{n>=1} 1/a(n) = 1.291285997... = A073009.
Sum_{n>=1} 1/a(n)^2 = 1.063887103... = A086648.
Sum_{n>=1} n!/a(n) = 1.879853862... = A094082. (End)
A000169(n+1)/a(n) -> e, as n -> oo. - Daniel Suteu, Jul 23 2016
a(n) = n!*Product_{k=1..n} binomial(n, k)/Product_{k=1..n-1} binomial(n-1, k) = n!*A001142(n)/A001142(n-1). - Tony Foster III, Sep 05 2018
a(n-1) = abs(p_n(2-n)), for n > 2, the single local extremum of the n-th row polynomial of A055137 with Bagula's sign convention. - Tom Copeland, Nov 15 2019
Sum_{n>=1} (-1)^(n+1)/a(n) = A083648. - Amiram Eldar, Jun 25 2021
Limit_{n->oo} (a(n+1)/a(n) - a(n)/a(n-1)) = e (see Brothers/Knox link). - Harlan J. Brothers, Oct 24 2021
Conjecture: a(n) = Sum_{i=0..n} A048994(n, i) * A048993(n+i, n) for n >= 0; proved by Mike Earnest, see link at A354797. - Werner Schulte, Jun 19 2022

A089072 Triangle read by rows: T(n,k) = k^n, n >= 1, 1 <= k <= n.

Original entry on oeis.org

1, 1, 4, 1, 8, 27, 1, 16, 81, 256, 1, 32, 243, 1024, 3125, 1, 64, 729, 4096, 15625, 46656, 1, 128, 2187, 16384, 78125, 279936, 823543, 1, 256, 6561, 65536, 390625, 1679616, 5764801, 16777216, 1, 512, 19683, 262144, 1953125, 10077696, 40353607, 134217728, 387420489
Offset: 1

Views

Author

Alford Arnold, Dec 04 2003

Keywords

Comments

T(n, k) = number of mappings from an n-element set into a k-element set. - Clark Kimberling, Nov 26 2004
Let S be the semigroup of (full) transformations on [n]. Let a be in S with rank(a) = k. Then T(n,k) = |a S|, the number of elements in the right principal ideal generated by a. - Geoffrey Critzer, Dec 30 2021
From Manfred Boergens, Jun 23 2024: (Start)
In the following two comments the restriction k<=n can be lifted, allowing all k>=1.
T(n,k) is the number of n X k binary matrices with row sums = 1.
T(n,k) is the number of coverings of [n] by tuples (A_1,...,A_k) in P([n])^k with disjoint A_j, with P(.) denoting the power set.
For nonempty A_j see A019538.
For tuples with "disjoint" dropped see A092477.
For tuples with nonempty A_j and with "disjoint" dropped see A218695. (End)

Examples

			Triangle begins:
  1;
  1,  4;
  1,  8,  27;
  1, 16,  81,  256;
  1, 32, 243, 1024,  3125;
  1, 64, 729, 4096, 15625, 46656;
  ...
		

Crossrefs

Related to triangle of Eulerian numbers A008292.

Programs

  • Haskell
    a089072 = flip (^)
    a089072_row n = map (a089072 n) [1..n]
    a089072_tabl = map a089072_row [1..]  -- Reinhard Zumkeller, Mar 18 2013
    
  • Magma
    [k^n: k in [1..n], n in [1..12]]; // G. C. Greubel, Nov 01 2022
    
  • Mathematica
    Column[Table[k^n, {n, 8}, {k, n}], Center] (* Alonso del Arte, Nov 14 2011 *)
  • SageMath
    flatten([[k^n for k in range(1,n+1)] for n in range(1,12)]) # G. C. Greubel, Nov 01 2022

Formula

Sum_{k=1..n} T(n, k) = A031971(n).
T(n, n) = A000312(n).
T(2*n, n) = A062206(n).
a(n) = (n + T*(1-T)/2)^T, where T = round(sqrt(2*n),0). - Gerald Hillier, Apr 12 2015
T(n,k) = A051129(n,k). - R. J. Mathar, Dec 10 2015
T(n,k) = Sum_{i=0..k} Stirling2(n,i)*binomial(k,i)*i!. - Geoffrey Critzer, Dec 30 2021
From G. C. Greubel, Nov 01 2022: (Start)
T(n, n-1) = A007778(n-1), n >= 2.
T(n, n-2) = A008788(n-2), n >= 3.
T(2*n+1, n) = A085526(n).
T(2*n-1, n) = A085524(n).
T(2*n-1, n-1) = A085526(n-1), n >= 2.
T(3*n, n) = A083282(n).
Sum_{k=1..n} (-1)^k * T(n, k) = (-1)^n * A120485(n).
Sum_{k=1..floor(n/2)} T(n-k, k) = A226065(n).
Sum_{k=1..floor(n/2)} T(n, k) = A352981(n).
Sum_{k=1..floor(n/3)} T(n, k) = A352982(n). (End)

Extensions

More terms and better definition from Herman Jamke (hermanjamke(AT)fastmail.fm), Jul 10 2004
Offset corrected by Reinhard Zumkeller, Mar 18 2013

A155955 Triangle read by rows: T(n,k) = (k*n)^k, 0 <= k <= n.

Original entry on oeis.org

1, 1, 1, 1, 2, 16, 1, 3, 36, 729, 1, 4, 64, 1728, 65536, 1, 5, 100, 3375, 160000, 9765625, 1, 6, 144, 5832, 331776, 24300000, 2176782336, 1, 7, 196, 9261, 614656, 52521875, 5489031744, 678223072849, 1, 8, 256, 13824, 1048576, 102400000, 12230590464
Offset: 0

Views

Author

Reinhard Zumkeller, Jan 31 2009

Keywords

Comments

T(n,0) = 1;
T(n,1) = n for n > 0;
T(n,2) = A016742(n) for n > 1;
T(n,3) = A016767(n) for n > 2;
T(n,4) = A016804(n) for n > 3;
T(n,5) = A016853(n) for n > 4;
T(n,6) = A016914(n) for n > 5;
T(n,7) = A016987(n) for n > 6;
T(n,8) = A017072(n) for n > 7;
T(n,9) = A017169(n) for n > 8;
T(n,10) = A017278(n) for n > 9;
T(n,11) = A017399(n) for n > 10;
T(n,12) = A017532(n) for n > 11;
T(n,n) = A062206(n).

Examples

			Triangle begins:
  1;
  1, 1;
  1, 2,  16;
  1, 3,  36,  729;
  1, 4,  64, 1728,  65536;
  1, 5, 100, 3375, 160000,  9765625;
  1, 6, 144, 5832, 331776, 24300000, 2176782336;
  ...
		

Crossrefs

Cf. A000312.

Programs

  • Magma
    [[(n*k)^k: k in [0..n]]: n in [0..10]]; // G. C. Greubel, Sep 15 2018
  • Mathematica
    Table[If[n == 0, 1, If[ k == 0, 1, (k*n)^k]], {n, 0, 10}, {k, 0, n}]//Flatten (* G. C. Greubel, Sep 15 2018 *)
  • PARI
    for(n=0,10, for(k=0,n, print1((k*n)^k, ", "))) \\ G. C. Greubel, Sep 15 2018
    

A245910 Number A(n,k) of pairs of endofunctions f, g on [n] satisfying f(g^k(i)) = f(i) for all i in [n]; square array A(n,k), n>=0, k>=0, read by antidiagonals.

Original entry on oeis.org

1, 1, 1, 1, 1, 16, 1, 1, 10, 729, 1, 1, 12, 159, 65536, 1, 1, 10, 249, 3496, 9765625, 1, 1, 12, 207, 7744, 98345, 2176782336, 1, 1, 10, 249, 6856, 326745, 3373056, 678223072849, 1, 1, 12, 159, 9184, 302345, 17773056, 136535455, 281474976710656
Offset: 0

Views

Author

Alois P. Heinz, Aug 06 2014

Keywords

Examples

			Square array A(n,k) begins:
0 :        1,     1,      1,      1,      1,      1, ...
1 :        1,     1,      1,      1,      1,      1, ...
2 :       16,    10,     12,     10,     12,     10, ...
3 :      729,   159,    249,    207,    249,    159, ...
4 :    65536,  3496,   7744,   6856,   9184,   3496, ...
5 :  9765625, 98345, 326745, 302345, 488745, 173225, ...
		

Crossrefs

Main diagonal gives A245911.

Programs

  • Maple
    with(combinat):
    b:= proc(n, i, k) option remember; unapply(`if`(n=0 or i=1, x^n,
          expand(add((i-1)!^j*multinomial(n, n-i*j, i$j)/j!*
          x^(igcd(i, k)*j)*b(n-i*j, i-1, k)(x), j=0..n/i))), x)
        end:
    A:= (n, k)-> `if`(k=0, n^(2*n), add(binomial(n-1, j-1)*n^(n-j)*
                  b(j$2, k)(n), j=0..n)):
    seq(seq(A(n, d-n), n=0..d), d=0..10);
  • Mathematica
    multinomial[n_, k_List] := n!/Times @@ (k!); b[n_, i_, k_] := b[n, i, k] = Function[{x}, If[n == 0 || i == 1, x^n, Expand[Sum[(i-1)!^j*multinomial[n, Join[{ n-i*j}, Array[i&, j]]]/j!*x^(GCD[i, k]*j)*b[n-i*j, i-1, k][x], {j, 0, n/i}]]]]; A[0, ] = 1; A[n, k_] := If[k == 0, n^(2n), Sum[Binomial[n-1, j-1]*n^(n-j)* b[j, j, k][n], {j, 0, n}]]; Table[A[n, d-n], {d, 0, 10}, {n, 0, d}] // Flatten (* Jean-François Alcover, Feb 04 2015, after Alois P. Heinz *)

A245980 Number A(n,k) of pairs of endofunctions f, g on [n] satisfying g^k(f(i)) = f(i) for all i in [n]; square array A(n,k), n>=0, k>=0, read by antidiagonals.

Original entry on oeis.org

1, 1, 1, 1, 1, 16, 1, 1, 6, 729, 1, 1, 10, 87, 65536, 1, 1, 6, 213, 2200, 9765625, 1, 1, 10, 141, 8056, 84245, 2176782336, 1, 1, 6, 213, 6184, 465945, 4492656, 678223072849, 1, 1, 10, 87, 9592, 387545, 37823616, 315937195, 281474976710656
Offset: 0

Views

Author

Alois P. Heinz, Aug 08 2014

Keywords

Examples

			Square array A(n,k) begins:
0 :        1,     1,      1,      1,      1,      1, ...
1 :        1,     1,      1,      1,      1,      1, ...
2 :       16,     6,     10,      6,     10,      6, ...
3 :      729,    87,    213,    141,    213,     87, ...
4 :    65536,  2200,   8056,   6184,   9592,   2200, ...
5 :  9765625, 84245, 465945, 387545, 682545, 159245, ...
		

Crossrefs

Main diagonal gives A245988.
Cf. A245910.

Programs

  • Maple
    with(numtheory): with(combinat): M:=multinomial:
    b:= proc(n, k, p) local l, g; l, g:= sort([divisors(p)[]]),
          proc(k, m, i, t) option remember; local d, j; d:= l[i];
            `if`(i=1, n^m, add(M(k, k-(d-t)*j, (d-t)$j)/j!*
             (d-1)!^j *M(m, m-t*j, t$j) *g(k-(d-t)*j, m-t*j,
            `if`(d-t=1, [i-1, 0], [i, t+1])[]), j=0..min(k/(d-t),
            `if`(t=0, [][], m/t))))
          end; g(k, n-k, nops(l), 0)
        end:
    A:= (n, k)-> `if`(k=0, n^(2*n), add(b(n, j, k)*
                 stirling2(n, j)*binomial(n, j)*j!, j=0..n)):
    seq(seq(A(n, d-n), n=0..d), d=0..12);
  • Mathematica
    multinomial[n_, k_List] := n!/Times @@ (k!); M = multinomial;
    b[n_, k0_, p_] := Module[{l, g}, l = Sort[Divisors[p]]; g[k_, m_, i_, t_] := g[k, m, i, t] = Module[{d, j}, d = l[[i]]; If[i == 1, n^m, Sum[M[k, Join[{k - (d-t)*j}, Array[(d - t)&, j]]]/ j!*(d-1)!^j * M[m, Join[{m - t*j}, Array[t&, j]]]*If[d-t == 1, g[k - (d - t)*j, m - t*j, i-1, 0], g[k - (d-t)*j, m - t*j, i, t+1]], {j, 0, Min[k/(d-t), If[t == 0, Infinity, m/t]]}]]]; g[k0, n-k0, Length[l], 0]];
    A[n_, k_] := If[k == 0, n^(2*n), Sum[b[n, j, k]*StirlingS2[n, j]* Binomial[n, j]*j!, {j, 0, n}]]; A[0, ] = 1; A[1, ] = 1;
    Table[Table[A[n, d - n], {n, 0, d}], {d, 0, 12}] // Flatten (* Jean-François Alcover, Jan 27 2015, after Alois P. Heinz *)

A323280 a(n) = Sum_{k=0..n} binomial(n,k) * k^(2*k).

Original entry on oeis.org

1, 2, 19, 781, 68553, 10100761, 2236373953, 693667946945, 286962262702657, 152652510206521921, 101513694573289791441, 82511051259976074269425, 80480313356721971865934369, 92773167329045961244649105633, 124768226258051318899374299271601
Offset: 0

Views

Author

Seiichi Manyama, Jan 12 2019

Keywords

Crossrefs

Programs

  • Mathematica
    Table[1 + Sum[Binomial[n, k]*k^(2*k), {k, 1, n}], {n, 0, 15}] (* Vaclav Kotesovec, May 31 2019 *)
  • PARI
    a(n) = sum(k=0, n, binomial(n, k)*k^(2*k));
    
  • PARI
    my(N=20, x='x+O('x^N)); Vec(sum(k=0, N, (k^2*x)^k/(1-x)^(k+1))) \\ Seiichi Manyama, Jul 04 2022
    
  • PARI
    my(N=20, x='x+O('x^N)); Vec(serlaplace(exp(x)*sum(k=0, N, (k^2*x)^k/k!))) \\ Seiichi Manyama, Jul 04 2022

Formula

a(n) ~ n^(2*n). - Vaclav Kotesovec, May 31 2019
From Seiichi Manyama, Jul 04 2022: (Start)
G.f.: Sum_{k>=0} (k^2 * x)^k/(1 - x)^(k+1).
E.g.f.: exp(x) * Sum_{k>=0} (k^2 * x)^k/k!. (End)

A085524 a(0) = 0; a(n) = n^(2*n-1) for n > 0.

Original entry on oeis.org

0, 1, 8, 243, 16384, 1953125, 362797056, 96889010407, 35184372088832, 16677181699666569, 10000000000000000000, 7400249944258160101211, 6624737266949237011120128, 7056410014866816666030739693, 8819763977946281130444984418304, 12783403948858939111232757568359375
Offset: 0

Views

Author

N. J. A. Sloane, Jul 05 2003

Keywords

Comments

For n > 0, a(n) is the square of the determinant of the (2*n) X (2*n) matrix with elements M(j,k) = cos(Pi*j*k/n). See the MathOverflow link. - Hugo Pfoertner, Sep 18 2021

Crossrefs

Programs

  • Magma
    [n eq 0 select 0 else n^(2*n-1): n in [0..30]]; // G. C. Greubel, Nov 01 2022
    
  • Mathematica
    Join[{0}, Table[n^(2 n - 1), {n, 20}]] (* Harvey P. Dale, May 16 2016 *)
  • PARI
    a(n) = if(n==0, 0, n^(2*n-1)) \\ Altug Alkan, Oct 04 2017
    
  • SageMath
    [0]+[n^(2*n-1) for n in range(1,31)] # G. C. Greubel, Nov 01 2022

Formula

a(n) = n! * [x^n] -LambertW(-n*x). - Ilya Gutkovskiy, Oct 04 2017
a(n) = A089072(2*n-1, n), n >= 1. - G. C. Greubel, Nov 01 2022

A085526 a(n) = n^(2n+1).

Original entry on oeis.org

0, 1, 32, 2187, 262144, 48828125, 13060694016, 4747561509943, 2251799813685248, 1350851717672992089, 1000000000000000000000, 895430243255237372246531, 953962166440690129601298432, 1192533292512492016559195008117, 1728673739677471101567216945987584, 2876265888493261300027370452880859375
Offset: 0

Views

Author

N. J. A. Sloane, Jul 05 2003

Keywords

Crossrefs

Programs

Formula

a(n) = n*A062206(n). - R. J. Mathar, Mar 11 2017
a(n) = [x^(2*n+1)] 1/(1 - n*x). - Ilya Gutkovskiy, Oct 10 2017
a(n) = A089072(2*n-1, n-1). - G. C. Greubel, Nov 01 2022

A062207 a(n) = 2*n^n-1.

Original entry on oeis.org

1, 1, 7, 53, 511, 6249, 93311, 1647085, 33554431, 774840977, 19999999999, 570623341221, 17832200896511, 605750213184505, 22224013651116031, 875787780761718749, 36893488147419103231, 1654480523772673528353, 78692816150593075150847, 3956839311320627178247957
Offset: 0

Views

Author

Jason Earls, Jun 13 2001

Keywords

Comments

Also: a(n) = 2m-1 where m is given by Sum_{i = 1..m } 2*i-1 = n^(2*n) (A062206).
"By setting n=m^p, one sees that m^(2p), an even power of any integer, is equal to the sum of all the odd integers up to and including 2m^p-1;..." - p. 16.

Examples

			a(2)=7 and 1+3+5+7=16, which is A062206(2).
a(3)=53 and 1+3+5+...+53=729, which is A062206(3).
		

References

  • C. Stanley Ogilvy and John T. Anderson, Excursions in Number Theory, Oxford University Press, 1966, pp. 16-17.

Crossrefs

Programs

  • Mathematica
    Table[2n^n-1,{n,20}] (* Harvey P. Dale, Jul 19 2015 *)
  • PARI
    { for (n=1, 100, write("b062207.txt", n, " ", 2*(n^n) - 1) ) } \\ Harry J. Smith, Aug 02 2009

Formula

a(n) = A013499(n) - 1 for n>=2. - R. J. Mathar, May 18 2007
E.g.f.: 2/(1 + LambertW(-x)) - exp(x). - Vaclav Kotesovec, Dec 21 2014

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), Jun 15 2001
Definition simplified by M. F. Hasler, Sep 02 2012
a(0)=1 prepended by Alois P. Heinz, Feb 20 2023

A062275 Array A(n, k) = n^k * k^n, n, k >= 0, read by antidiagonals.

Original entry on oeis.org

1, 0, 0, 0, 1, 0, 0, 2, 2, 0, 0, 3, 16, 3, 0, 0, 4, 72, 72, 4, 0, 0, 5, 256, 729, 256, 5, 0, 0, 6, 800, 5184, 5184, 800, 6, 0, 0, 7, 2304, 30375, 65536, 30375, 2304, 7, 0, 0, 8, 6272, 157464, 640000, 640000, 157464, 6272, 8, 0, 0, 9, 16384, 750141, 5308416, 9765625
Offset: 0

Views

Author

Henry Bottomley, Jul 02 2001

Keywords

Comments

Here 0^0 is defined to be 1. - Wolfdieter Lang, May 27 2018

Examples

			A(3, 2) = 3^2 * 2^3 = 9*8 = 72.
The array A(n, k) begins:
n\k 0 1   2   3    4     5      6      7       8        9       10 ...
0:  1 0   0   0    0     0      0      0       0        0        0 ...
1:  0 1   2   3    4     5      6      7       8        9       10 ...
2:  0 2  16  72  256   800   2304   6272   16384    41472   102400 ...
3:  0 3  72 729 5184 30375 157464 750141 3359232 14348907 59049000 ...
...
The triangle T(n, k) begins:
n\k  0  1    2      3      4      5      6    7  8  9 ...
0:   1
1:   0  0
2:   0  1    0
3:   0  2    2      0
4:   0  3   16      3      0
5:   0  4   72     72      4      0
6:   0  5  256    729    256      5      0
7:   0  6  800   5184   5184    800      6    0
8:   0  7 2304  30375  65536  30375   2304    7  0
9:   0  8 6272 157464 640000 640000 157464 6272  8  0
... - _Wolfdieter Lang_, May 22 2018
		

Crossrefs

Columns and rows of A, or columns and diagonals of T, include A000007, A001477, A007758, A062074, A062075 etc. Diagonals of A include A062206, A051443, A051490. Sum of rows of T are A062817(n), for n >= 1

Programs

  • Mathematica
    {{1}}~Join~Table[(#^k k^#) &[n - k], {n, 10}, {k, 0, n}] // Flatten (* Michael De Vlieger, May 24 2018 *)
  • PARI
    t1(n)=n-binomial(round(sqrt(2+2*n)), 2)
    t2(n)=binomial(floor(3/2+sqrt(2+2*n)), 2)-(n+1)
    a(n)=t1(n)^t2(n)*t2(n)^t1(n) \\ Eric Chen, Jun 09 2018

Formula

From Wolfdieter Lang, May 22 2018: (Start)
As a sequence: a(n) = A003992(n)*A004248(n).
As a triangle: T(n, k) = (n-k)^k * k^(n-k), for n >= 1 and k = 1..n. (End)
Showing 1-10 of 27 results. Next