login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A275044 Number of set partitions of [n^2] such that within each block the numbers of elements from all residue classes modulo n are equal for n>0, a(0)=1. 5

%I #14 Jul 12 2020 10:47:50

%S 1,1,3,64,25097,350813126,293327384637282,22208366234650578141209,

%T 213426677887357366350726096998529,

%U 344735749788852590196707169431958672823413322,118966637603805785518622376062965559343297730169187276656138

%N Number of set partitions of [n^2] such that within each block the numbers of elements from all residue classes modulo n are equal for n>0, a(0)=1.

%H Alois P. Heinz, <a href="/A275044/b275044.txt">Table of n, a(n) for n = 0..30</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Partition_of_a_set">Partition of a set</a>

%F a(n) = (n!)^n * [x^n] exp(Sum_{k>=1} x^k / (k!)^n). - _Ilya Gutkovskiy_, Jul 12 2020

%e a(2) = 3: 1234, 12|34, 14|23.

%e a(3) = 64: 123456789, 123456|789, 123459|678, 123468|579, ... , 159|267|348, 168|279|345, 189|267|345.

%p b:= proc(n, k) option remember; `if`(k*n=0, 1, add(

%p binomial(n, j)^k*(n-j)*b(j, k), j=0..n-1)/n)

%p end:

%p a:= n-> b(n$2):

%p seq(a(n), n=0..12);

%t b[n_, k_] := b[n, k] = If[k*n == 0, 1, Sum[Binomial[n, j]^k*(n-j)*b[j, k], {j, 0, n-1}]/n];

%t a[n_] := b[n, n];

%t Table[a[n], {n, 0, 12}] (* _Jean-François Alcover_, May 27 2018, translated from Maple *)

%Y Main diagonal of A275043.

%K nonn

%O 0,3

%A _Alois P. Heinz_, Jul 14 2016

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 15 12:41 EDT 2024. Contains 375173 sequences. (Running on oeis4.)