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.

A316624 Number of balanced p-trees with n leaves.

This page as a plain text file.
%I A316624 #33 Oct 26 2018 00:51:47
%S A316624 1,1,1,2,2,4,4,8,9,16,20,40,47,83,111,201,259,454,603,1049,1432,2407,
%T A316624 3390,6006,8222,13904,20304,34828,50291,85817,126013,217653,317894,
%U A316624 535103,798184,1367585,2008125,3360067,5048274,8499942,12623978,21023718,31552560,52575257
%N A316624 Number of balanced p-trees with n leaves.
%C A316624 A p-tree of weight n is either a single node (if n = 1) or a finite sequence of p-trees whose weights are weakly decreasing and sum to n.
%C A316624 A tree is balanced if all leaves have the same height.
%H A316624 Andrew Howroyd, <a href="/A316624/b316624.txt">Table of n, a(n) for n = 1..500</a>
%e A316624 The a(1) = 1 through a(7) = 4 balanced p-trees:
%e A316624   o  (oo)  (ooo)  (oooo)      (ooooo)      (oooooo)        (ooooooo)
%e A316624                   ((oo)(oo))  ((ooo)(oo))  ((ooo)(ooo))    ((oooo)(ooo))
%e A316624                                            ((oooo)(oo))    ((ooooo)(oo))
%e A316624                                            ((oo)(oo)(oo))  ((ooo)(oo)(oo))
%t A316624 ptrs[n_]:=If[n==1,{"o"},Join@@Table[Tuples[ptrs/@p],{p,Rest[IntegerPartitions[n]]}]];
%t A316624 Table[Length[ptrs[n]],{n,12}]
%t A316624 Table[Length[Select[ptrs[n],SameQ@@Length/@Position[#,"o"]&]],{n,12}]
%o A316624 (PARI) seq(n)={my(p=x + O(x*x^n), q=0); while(p, q+=p; p = 1/prod(k=1, n, 1 - polcoef(p,k)*x^k + O(x*x^n)) - 1 - p); Vec(q)} \\ _Andrew Howroyd_, Oct 26 2018
%Y A316624 Cf. A000311, A000669, A001678, A005804, A048816, A079500, A119262, A120803, A141268, A196545, A289501, A319312.
%K A316624 nonn
%O A316624 1,4
%A A316624 _Gus Wiseman_, Oct 07 2018
%E A316624 Terms a(17) and beyond from _Andrew Howroyd_, Oct 26 2018