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.

A317807 Number of set partitions of [k] into 5 blocks with equal element sum, where k is the n-th positive integer that allows such a partition.

This page as a plain text file.
%I A317807 #18 Dec 16 2020 08:56:20
%S A317807 1,1,68,187,27763,108516,25958279,100664383,26388943467,109026138857,
%T A317807 33100108402861,139752234469078,46498731704890104,200612215343574676,
%U A317807 71799817534098086846,314741192906319529056
%N A317807 Number of set partitions of [k] into 5 blocks with equal element sum, where k is the n-th positive integer that allows such a partition.
%C A317807 k = 9, 10, 14, 15, 19, ... A047208(n+3) for n = 1, 2, 3, 4, 5, ... .
%H A317807 Wikipedia, <a href="https://en.wikipedia.org/wiki/Partition_of_a_set">Partition of a set</a>
%F A317807 a(n) = A275714(A047208(n+3),5).
%e A317807 a(1) = 1: 18|27|36|45|9 with k = 9.
%e A317807 a(2) = 1: 1(10)|29|38|47|56 with k = 10.
%p A317807 b:= proc() option remember; local i, j, t; `if`(args[1]=0,
%p A317807       `if`(nargs=2, 1, b(args[t] $t=2..nargs)), add(
%p A317807       `if`(args[j] -args[nargs]<0, 0, b(sort([seq(args[i]-
%p A317807       `if`(i=j, args[nargs], 0), i=1..nargs-1)])[],
%p A317807                 args[nargs]-1)), j=1..nargs-1))
%p A317807     end:
%p A317807 a:= proc(n) option remember; (k-> (m->
%p A317807       b((m/5)$5, k)/5!)(k*(k+1)/2))(5+5*n/2+3/4*(1-(-1)^n))
%p A317807     end:
%p A317807 seq(a(n), n=1..8);
%t A317807 b[args_List] := b[args] = Module[{nargs = Length[args]}, If[args[[1]] == 0, If[nargs == 3, 1, b[args // Rest]], Sum[If[args[[j]] - Last[args] < 0, 0, b[Append[Sort[Flatten[Table[args[[i]] - If[i == j, Last[args], 0], {i, 1, nargs - 1}]]], Last[args] - 1]]], {j, 1, nargs - 1}]]];
%t A317807 a[n_] := a[n] = Function[k, Function[m, b[Append[Table[m/5, {5}], k]]/5!][k (k + 1)/2]][5 + 5n/2 + (3/4)(1 - (-1)^n)];
%t A317807 Table[Print[n, " ", a[n]]; a[n], {n, 1, 12}] (* _Jean-François Alcover_, Dec 16 2020, after _Alois P. Heinz_ *)
%Y A317807 Cf. A047208, A275714.
%K A317807 nonn
%O A317807 1,3
%A A317807 _Alois P. Heinz_, Aug 07 2018