A351118 a(n) is the number of endofunctions on an n-set where there is an element with a preimage of cardinality greater than n/2.
1, 2, 21, 52, 905, 2436, 58513, 165096, 5053329, 14690260, 546376721, 1621207512, 70973853145, 213746971816, 10765350278145, 32788134075856, 1867372988701217, 5737757882873652, 364586039726904145, 1128184012390456440, 79120980149003612841
Offset: 1
Keywords
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..592
Crossrefs
Cf. A000312 (endofunctions).
Programs
-
Mathematica
a[1] = 1; a[n_] := n * Sum[(n - 1)^k*Binomial[n, k], {k, 0, Floor[(n - 1)/2]}]; Array[a, 20] (* Amiram Eldar, Feb 01 2022 *)
-
PARI
a(n) = n*sum(k=0,floor((n-1)/2), binomial(n,k)*(n-1)^k)
Formula
a(n) = n * Sum_{k=0..floor((n-1)/2)} binomial(n,k)*(n-1)^k.
Comments