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.

Previous Showing 11-20 of 67 results. Next

A065440 a(n) = (n-1)^n.

Original entry on oeis.org

1, 0, 1, 8, 81, 1024, 15625, 279936, 5764801, 134217728, 3486784401, 100000000000, 3138428376721, 106993205379072, 3937376385699289, 155568095557812224, 6568408355712890625, 295147905179352825856, 14063084452067724991009, 708235345355337676357632
Offset: 0

Views

Author

Len Smiley, Nov 17 2001

Keywords

Comments

a(n) is the number of functions from {1,2,...,n} into {1,2,...,n} that have no fixed points.
The probability that a random function from {1,2,...,n} into {1,2,...,n} has no fixed point is equal to a(n)/n^n; it tends to 1/e when n tends to infinity. - Robert FERREOL, Mar 29 2017

Crossrefs

Essentially the same as A007778 - note T(x) = -W(-x).
Column k=0 of A055134.
Row sums of A350452.

Programs

Formula

a(n) = A007778(n-1).
E.g.f.: x/(T(x)*(1-T(x))) (where T(x) is Euler's tree function, the E.g.f. for n^(n-1)) (see A000169).
a(n) = Sum_{k=0..n} (-1)^k*binomial(n,k)*n^(n-k). - Robert FERREOL, Mar 28 2017
a(n) = Sum_{k=0..n} (-1)^k*binomial(n+2,k+2)*(k+1)*(2*k+n+3)^n. - Vladimir Kruchinin, Aug 13 2025

A007925 a(n) = n^(n+1) - (n+1)^n.

Original entry on oeis.org

-1, -1, -1, 17, 399, 7849, 162287, 3667649, 91171007, 2486784401, 74062575399, 2395420006033, 83695120256591, 3143661612445145, 126375169532421599, 5415486851106043649, 246486713303685957375, 11877172892329028459041, 604107995057426434824791
Offset: 0

Views

Author

Dennis S. Kluk (mathemagician(AT)ameritech.net)

Keywords

Comments

From Mathew Englander, Jul 07 2020: (Start)
All a(n) are odd and for n even, a(n) == 3 (mod 4); for n odd and n != 1, a(n) == 1 (mod 4).
The correspondence between n and a(n) when considered mod 6 is as follows: for n == 0, 1, 2, or 3, a(n) == 5; for n == 4, a(n) == 3; for n == 5, a(n) == 1.
For all n, a(n)+1 is a multiple of n^2.
For n odd and n >= 3, a(n)-1 is a multiple of (n+1)^2.
For n even and n >= 0, a(n)+1 is a multiple of (n+1)^2.
For proofs of the above, see the Englander link. (End)

Examples

			a(2) = 1^2 - 2^1 = -1,
a(4) = 3^4 - 4^3 = 17.
		

References

  • G. Everest, A. van der Poorten, I. Shparlinski and T. Ward, Recurrence Sequences, Amer. Math. Soc., 2003; see esp. p. 255.

Crossrefs

Programs

Formula

Asymptotic expression for a(n) is a(n) ~ n^n * (n - e). - Ahmed Fares (ahmedfares(AT)my-deja.com), Apr 19 2001
From Mathew Englander, Jul 07 2020: (Start)
a(n) = A111454(n+4) - 1.
a(n) = A055651(n, n+1).
a(n) = A220417(n+1, n) for n >= 1.
a(n) = A007778(n) - A000169(n+1).
(End)
E.g.f.: LambertW(-x)/((1+LambertW(-x))*x)-LambertW(-x)/(1+LambertW(-x))^3. - Alois P. Heinz, Jul 04 2022

A031973 a(n) = Sum_{k=0..n} n^k.

Original entry on oeis.org

1, 2, 7, 40, 341, 3906, 55987, 960800, 19173961, 435848050, 11111111111, 313842837672, 9726655034461, 328114698808274, 11966776581370171, 469172025408063616, 19676527011956855057, 878942778254232811938, 41660902667961039785743, 2088331858752553232964200
Offset: 0

Views

Author

Keywords

Comments

These are the generalized repunits of length n+1 in base n for all n >= 1: a(n) expressed in base n is 111...111 (n+1 1's): a(1) = 1^0 + 1^1 = 2 = A000042(2), a(2) = 2^0 + 2^1 + 2^2 = 7 = A000225(3), a(3) = 3^0 + 3^1 + 3^2 + 3^3 = 40 = A003462(4), etc., a(10) = 10^0 + 10^1 + 10^2 + ... + 10^9 + 10^10 = 11111111111 = A002275(11), etc. - Rick L. Shepherd, Aug 26 2004
a(n)=the total number of ordered selections of up to n objects from n types with repetitions allowed. Thus for 2 objects a,b there are 7 possible selections: aa,bb,ab,ba,a,b, and the null set. - J. M. Bergot, Mar 26 2014
a(n)=the total number of ordered arrangements of 0,1,2..n objects, with repetitions allowed, selected from n types of objects. - J. M. Bergot, Apr 11 2014

Examples

			a(3) = 3^0 + 3^1 + 3^2 + 3^3 = 40.
		

Crossrefs

Cf. A000042 (unary representations), A000225 (2^n-1: binary repunits shown in decimal), A003462 ((3^n-1)/2: ternary repunits shown in decimal), A002275 ((10^n-1)/9: decimal repunits).
Cf. A104878.

Programs

  • Magma
    [&+[n^k: k in [0..n]]: n in [0..30]]; // Vincenzo Librandi, Apr 18 2011
    
  • Maple
    a:= proc(n) local c, i; c:=1; for i to n do c:= c*n+1 od; c end:
    seq(a(n), n=0..20); # Alois P. Heinz, Aug 15 2013
  • Mathematica
    Join[{1},Table[Total[n^Range[0,n]],{n,20}]] (* Harvey P. Dale, Nov 13 2011 *)
  • PARI
    a(n)=(n^(n+1)-1)/(n-1) \\ Charles R Greathouse IV, Mar 26 2014
  • Sage
    [lucas_number1(n,n,n-1) for n in range(1, 19)] # Zerinvary Lajos, May 16 2009
    

Formula

a(n) = (n^(n+1)-1)/(n-1) = (A007778(n)-1)/(n-1) = A023037(n)+A000312(n) = A031972(n)+1. - Henry Bottomley, Apr 04 2003
a(n) = A125118(n,n-2) for n>2. - Reinhard Zumkeller, Nov 21 2006
a(n) = [x^n] 1/((1 - x)*(1 - n*x)). - Ilya Gutkovskiy, Oct 04 2017
a(n) = A104878(2n,n). - Alois P. Heinz, May 04 2021

A008785 a(n) = (n+4)^n.

Original entry on oeis.org

1, 5, 36, 343, 4096, 59049, 1000000, 19487171, 429981696, 10604499373, 289254654976, 8649755859375, 281474976710656, 9904578032905937, 374813367582081024, 15181127029874798299, 655360000000000000000, 30041942495081691894741, 1457498964228107529355264
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

Formula

E.g.f.(x) for b(n) = n^(n-4) = a(n-4): T - (7/8)*T^2 + (11/36)*T^3 - (1/24)*T^4, where T = T(x) is Euler's tree function (see A000169). - Len Smiley, Nov 17 2001
E.g.f.: LambertW(-x)^4/(x^4*(1+LambertW(-x))). - Vladeta Jovovic, Nov 07 2003
E.g.f.: (1/3)*d/dx(LambertW(-x)/(-x))^3. - Wolfdieter Lang, Oct 25 2022

A008788 a(n) = n^(n+2).

Original entry on oeis.org

0, 1, 16, 243, 4096, 78125, 1679616, 40353607, 1073741824, 31381059609, 1000000000000, 34522712143931, 1283918464548864, 51185893014090757, 2177953337809371136, 98526125335693359375, 4722366482869645213696
Offset: 0

Views

Author

Keywords

Examples

			G.f. = x + 16*x^2 + 243*x^3 + 4096*x^4 + 78125*x^5 + 1679616*x^6 + ...
		

Crossrefs

Programs

Formula

E.g.f.(x): T*(1 + 2*T)*(1-T)^(-5); where T=T(x) is Euler's tree function (see A000169). - Len Smiley, Nov 17 2001
See A008517 and A134991 for similar e.g.f.s. and A048993. - Tom Copeland, Oct 03 2011
E.g.f.: d^2/dx^2 {x^2/(T(x)^2*(1-T(x)))}, where T(x) = Sum_{n>=1} n^(n-1)*x^n/n! is the tree function of A000169. - Peter Bala, Aug 05 2012

A008791 a(n) = n^(n+5).

Original entry on oeis.org

0, 1, 128, 6561, 262144, 9765625, 362797056, 13841287201, 549755813888, 22876792454961, 1000000000000000, 45949729863572161, 2218611106740436992, 112455406951957393129, 5976303958948914397184, 332525673007965087890625
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

Formula

E.g.f.(x): T*(1 + 52*T + 328*T^2 + 444*T^3 + 120*T^4)*(1-T)^(-11); where T=T(x) is Euler's tree function (see A000169). - Len Smiley, Nov 17 2001
See A008517 and A134991 for similar e.g.f.s and diagonals of A048993. - Tom Copeland, Oct 03 2011
E.g.f.: d^5/dx^5 {x^5/(T(x)^5*(1-T(x)))}, where T(x) = Sum_{n>=1} n^(n-1)*x^n/n! is the tree function of A000169. - Peter Bala, Aug 05 2012

A051442 a(n) = n^(n+1)+(n+1)^n.

Original entry on oeis.org

1, 3, 17, 145, 1649, 23401, 397585, 7861953, 177264449, 4486784401, 125937424601, 3881436747409, 130291290501553, 4731091158953433, 184761021583202849, 7721329860319737601, 343809097055019694337, 16248996011806421522977
Offset: 0

Views

Author

Keywords

Comments

Odd prime p divides a(p-2). For n>1, a(prime(n)-2)/prime(n) = A125074(n) = {1, 29, 3343, 407889491, 298572057493, 454195874136455153, ...}. Prime p divides a((p+5)/2) for p = {19, 23, 61}. - Alexander Adamchuk, Nov 18 2006
From Mathew Englander, Jul 08 2020: (Start)
For all n != 1, a(n) mod 8 = 1.
If n mod 6 = 0, 3, or 5, then a(n) mod 6 = 1. If n mod 6 = 1, then a(n) mod 6 = 3. If n mod 6 = 2 or 4, then a(n) mod 6 = 5.
For all n, a(n)-1 is a multiple of n^2.
For n odd and n >= 3, a(n)-1 is a multiple of (n+1)^2.
For n even and n >= 0, a(n)+1 is a multiple of (n+1)^2.
For proofs, see the Englander link. (End)

Crossrefs

Programs

Formula

a(n) = (n + e + o(1)) * n^n. - Charles R Greathouse IV, Jan 12 2012
From Mathew Englander, Jul 08 2020: (Start)
a(n) = A093898(n+1, n) for n >= 1.
a(n) = a(n-1) + A258389(n) for n >= 1.
a(n) = A007778(n) + A000169(n+1).
(End)

A008789 a(n) = n^(n+3).

Original entry on oeis.org

0, 1, 32, 729, 16384, 390625, 10077696, 282475249, 8589934592, 282429536481, 10000000000000, 379749833583241, 15407021574586368, 665416609183179841, 30491346729331195904, 1477891880035400390625, 75557863725914323419136
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • GAP
    List([0..20], n-> n^(n+3)); # G. C. Greubel, Sep 11 2019
  • Magma
    [n^(n+3): n in [0..20]]; // Vincenzo Librandi, Jun 11 2013
    
  • Maple
    printlevel := -1; a := [0]; T := x->-LambertW(-x); f := series((T(x)*(1+8*T(x)+6*(T(x))^2)/(1-T(x))^7),x,24); for m from 1 to 23 do a := [op(a),op(2*m-1,f)*m! ] od; print(a); # Len Smiley, Nov 19 2001
  • Mathematica
    Table[n^(n+3),{n,0,20}](* Vladimir Joseph Stephan Orlovsky, Dec 26 2010 *)
  • PARI
    vector(20, n, (n-1)^(n+2)) \\ G. C. Greubel, Sep 11 2019
    
  • Sage
    [n^(n+3) for n in (0..20)] # G. C. Greubel, Sep 11 2019
    

Formula

E.g.f.(x): T*(1 +8*T +6*T^2)*(1-T)^(-7); where T=T(x) is Euler's tree function (see A000169). - Len Smiley, Nov 19 2001
See A008517 and A134991 for similar e.g.f.s and diagonals of A048993. - Tom Copeland, Oct 03 2011
E.g.f.: d^3/dx^3 {x^3/(T(x)^3*(1-T(x)))}, where T(x) = Sum_{n>=1} n^(n-1)*x^n/n! is the tree function of A000169. - Peter Bala, Aug 05 2012
a(n) = n*A008788(n). - R. J. Mathar, Oct 31 2015

A302583 a(n) = ((n + 1)^n - (n - 1)^n)/2.

Original entry on oeis.org

0, 1, 4, 28, 272, 3376, 51012, 908608, 18640960, 432891136, 11225320100, 321504185344, 10079828372880, 343360783937536, 12627774819845668, 498676704524517376, 21046391759976988928, 945381827279671853056, 45032132922921758270916, 2267322327322331161821184
Offset: 0

Views

Author

Ilya Gutkovskiy, Apr 10 2018

Keywords

Crossrefs

Programs

  • Mathematica
    Table[((n + 1)^n - (n - 1)^n)/2, {n, 0, 19}]
    nmax = 19; CoefficientList[Series[(x^2 - LambertW[-x]^2)/(2 x LambertW[-x] (1 + LambertW[-x])), {x, 0, nmax}], x] Range[0, nmax]!
    Table[n! SeriesCoefficient[Exp[n x] Sinh[x], {x, 0, n}], {n, 0, 19}]

Formula

E.g.f.: (x^2 - LambertW(-x)^2)/(2*x*LambertW(-x)*(1 + LambertW(-x))).
a(n) = n! * [x^n] exp(n*x)*sinh(x).

A008786 a(n) = (n+5)^n.

Original entry on oeis.org

1, 6, 49, 512, 6561, 100000, 1771561, 35831808, 815730721, 20661046784, 576650390625, 17592186044416, 582622237229761, 20822964865671168, 799006685782884121, 32768000000000000000, 1430568690241985328321, 66249952919459433152512, 3244150909895248285300369
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

Formula

E.g.f.(x) for b(n) = n^(n-5) = a(n-5): T - (15/16)*T^2 + (85/216)T^3 - (25/288)*T^4 + (1/120)*T^5, where T=T(x) is Euler's tree function. - Len Smiley, Nov 17 2001
E.g.f.: LambertW(-x)^5/((-x)^5*(1+LambertW(-x))). - Vladeta Jovovic, Nov 07 2003
E.g.f.: (1/4)*d/dx((LambertW(-x)/(-x))^4). - Wolfdieter Lang, Oct 25 2022
Previous Showing 11-20 of 67 results. Next