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.

A168542 Number of trees that have a maximum 'n'.

This page as a plain text file.
%I A168542 #9 Jul 12 2019 15:34:44
%S A168542 1,1,1,2,2,4,5,10,10,20,25,50,52,104,130,260,260,520,650,1300,1352,
%T A168542 2704,3380,6760,6770,13540,16925,33850,35204,70408,88010,176020,
%U A168542 176020,352040,440050,880100,915304,1830608,2288260,4576520,4583290,9166580,11458225
%N A168542 Number of trees that have a maximum 'n'.
%C A168542 a(2^n) = Product_{k=1..n} A003095(k). - _Michael Somos_, Dec 20 2018
%H A168542 Alois P. Heinz, <a href="/A168542/b168542.txt">Table of n, a(n) for n = 0..5654</a>
%F A168542 a(1) = a(2) = 1, a(3*2^m + k) = A003095(m+2) * a(n - 2*2^m) where 0 <= k < 3*2^m. - _Michael Somos_, Dec 20 2018
%F A168542 a(n) = Sum_{k=0..n} (A309049(n,k)-A309049(n-1,k)) for n > 0, a(0) = 1. - _Alois P. Heinz_, Jul 12 2019
%p A168542 b:= proc(n) option remember; `if`(n=0, 1, (g-> (f->
%p A168542       1+b(f)*b(n-1-f))(min(g-1, n-g/2)))(2^ilog2(n)))
%p A168542     end:
%p A168542 a:= n-> b(n)-`if`(n=0, 0, b(n-1)):
%p A168542 seq(a(n), n=0..45);  # _Alois P. Heinz_, Jul 12 2019
%t A168542 a[ n_] := If[ n < 3, Boole[n > 0], With[{m = BitLength[Quotient[n, 3]] - 1}, Nest[#^2 + 1 &, 2, m] a[n - 2 2^m]]]; (* _Michael Somos_, Dec 20 2018 *)
%o A168542 (PARI) {a(n) = if( n<3, n>0, my(m = #binary(n\3)-1, t = 2); for(i=1, m, t = t^2+1); t*a(n - 2*2^m))}; /* _Michael Somos_, Dec 20 2018 */
%Y A168542 Cf. A003095, A070939, A309049.
%Y A168542 Partial differences of A091980. - _Alois P. Heinz_, Jul 12 2019
%K A168542 nonn
%O A168542 0,4
%A A168542 Endi Begeja (andy.bege(AT)libero.it), Nov 29 2009
%E A168542 a(0)=1 prepended by _Alois P. Heinz_, Jul 12 2019