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.

A295261 Partitions into parts with frequency less than or equal to their place in the list of summands.

This page as a plain text file.
%I A295261 #18 Nov 19 2017 08:02:11
%S A295261 1,1,1,2,2,4,4,6,8,11,12,18,22,28,34,44,54,69,82,102,125,154,185,226,
%T A295261 271,327,393,474,562,673,797,947,1124,1329,1563,1846,2164,2541,2974,
%U A295261 3480,4062,4738,5508,6403,7432,8614,9966,11530,13307,15345,17670,20337
%N A295261 Partitions into parts with frequency less than or equal to their place in the list of summands.
%C A295261 Let the summands of a partition be s(1) < s(2) < ... < s(k) and the frequency of s(i) be f(i). Then we count those partitions for which f(i) <= i.
%H A295261 Alois P. Heinz, <a href="/A295261/b295261.txt">Table of n, a(n) for n = 0..2000</a>
%e A295261 The partition 1+1 is not counted because its smallest part, 1, appears twice.
%e A295261 The partition 3+2+2+1 is counted because its smallest part, 1, appears once; its next smallest part, 2 appears twice (and 2 <= 2) and its third part, 3, appears 1 time (and 1 <= 3).
%p A295261 b:= proc(n, i, t) option remember; `if`(n=0, 1, `if`(n<i, 0,
%p A295261       add(b(n-i*j, i+1, t+`if`(j=0, 0, 1)), j=0..min(t, n/i))))
%p A295261     end:
%p A295261 a:= n-> b(n, 1$2):
%p A295261 seq(a(n), n=0..60);  # _Alois P. Heinz_, Nov 18 2017
%t A295261 << Combinatorica`;
%t A295261 nend = 30;
%t A295261 For[n = 1, n <= nend, n++, count[n] = 0;
%t A295261   part = Partitions[n];
%t A295261   For[i = 1, i <= Length[part], i++,
%t A295261    t = Tally[part[[i]]];
%t A295261    condition = True;
%t A295261    For[j = 1, j <= Length[t], j++,
%t A295261     If[t[[-j, 2]] > j, condition = False ]];
%t A295261    If[condition, count[n]++]]];
%t A295261 Print[Table[count[i], {i, 1, nend}]]
%Y A295261 Cf. A244395.
%K A295261 nonn
%O A295261 0,4
%A A295261 _David S. Newman_, Nov 18 2017
%E A295261 More terms from _Alois P. Heinz_, Nov 18 2017