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.

Showing 1-2 of 2 results.

A253014 a(n) = number of unlabeled rooted trees on n nodes with an odd number of endpoints.

Original entry on oeis.org

1, 1, 1, 2, 4, 10, 24, 58, 142, 359, 919, 2384, 6240, 16487, 43894, 117689, 317400, 860585, 2344280, 6413109, 17610746, 48527584, 134141036, 371862499, 1033586232, 2879818131, 8041864259, 22503532974, 63093269641, 177213423131
Offset: 1

Views

Author

Marko Riedel, Dec 25 2014

Keywords

Crossrefs

Programs

  • Maple
    T :=
    proc(n)
        option remember;
        local k, s, A;
        if n=0 then return 0 fi;
        if n=1 then return u fi;
        A := n -> add(subs(u=u^l, T(n/l))/l,
                      l in divisors(n));
        s := (1-u)*A(n-1);
        s := s + 1/(n-1)*
        add((k+1)*A(k+1)*T(n-1-k), k=0..n-2);
        expand(s);
    end;

A339525 Number of unordered pairs of rooted trees with a total of n nodes and an odd total of leaves.

Original entry on oeis.org

0, 0, 0, 1, 3, 8, 19, 47, 119, 309, 805, 2115, 5594, 14920, 40037, 108068, 293124, 798739, 2185380, 6001797, 16538728, 45716315, 126727586, 352214041, 981269274, 2739925455, 7666335708, 21491822234, 60358497108, 169798015580, 478420350367
Offset: 1

Views

Author

Washington Bomfim, Dec 08 2020

Keywords

Comments

Equivalently, the number of rooted trees on n+1 nodes, where the root has degree 2, and the number of leaves is odd.
To get a pair of trees with an odd number of leaves one tree must have an even number of leaves and the other an odd number of leaves.

Crossrefs

Formula

a(n) = Sum_{k=1, n-1}( A253013(k) * A253014(n-k) ).
Showing 1-2 of 2 results.