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.

A100882 Number of partitions of n in which the sequence of frequencies of the summands is nonincreasing.

This page as a plain text file.
%I A100882 #16 Dec 13 2015 01:02:01
%S A100882 1,1,2,3,4,5,8,8,12,14,18,21,29,29,40,47,56,62,83,86,111,124,146,166,
%T A100882 207,217,267,300,352,389,471,505,604,668,772,860,1015,1085,1279,1419,
%U A100882 1622,1780,2072,2242,2595,2858,3231,3563,4092,4421,5057,5557,6250
%N A100882 Number of partitions of n in which the sequence of frequencies of the summands is nonincreasing.
%H A100882 Alois P. Heinz, <a href="/A100882/b100882.txt">Table of n, a(n) for n = 0..1000</a>
%e A100882 a(4) = 4 because in each of the partitions 4, 3+1, 2+2, 1+1+1+1, the frequencies of the summands is nonincreasing as the summands decrease. The partition 2+1+1 is not counted because 2 is used once, but 1 is used twice.
%p A100882 b:= proc(n,i,t) option remember;
%p A100882       if n<0 then 0
%p A100882     elif n=0 then 1
%p A100882     elif i=1 then `if`(n<=t, 1, 0)
%p A100882     elif i=0 then 0
%p A100882     else      b(n, i-1, t)
%p A100882          +add(b(n-i*j, i-1, j), j=1..min(t, floor(n/i)))
%p A100882       fi
%p A100882     end:
%p A100882 a:= n-> b(n, n, n):
%p A100882 seq(a(n), n=0..60);  # _Alois P. Heinz_, Feb 21 2011
%t A100882 b[n_, i_, t_] := b[n, i, t] = Which[n<0, 0, n == 0, 1, i == 1, If[n <= t, 1, 0], i == 0, 0, True, b[n, i-1, t] + Sum[b[n-i*j, i-1, j], {j, 1, Min[t, Floor[n/i]]}]]; a[n_] := b[n, n, n]; Table[a[n], {n, 0, 60}] (* _Jean-François Alcover_, Oct 26 2015, after _Alois P. Heinz_ *)
%Y A100882 Cf. A100881, A100883, A100884.
%K A100882 nonn
%O A100882 0,3
%A A100882 _David S. Newman_, Nov 21 2004
%E A100882 More terms from _Alois P. Heinz_, Feb 21 2011