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.

A215985 Number of simple unlabeled graphs on n nodes with exactly 5 connected components that are trees or cycles.

Original entry on oeis.org

1, 1, 3, 6, 13, 26, 55, 112, 238, 510, 1117, 2498, 5712, 13322, 31643, 76455, 187382, 465393, 1168966, 2966298, 7594035, 19597653, 50933434, 133224112, 350477003, 926855665, 2462830565, 6572892862, 17612586165, 47369774428, 127841265076, 346120109957
Offset: 5

Views

Author

Alois P. Heinz, Aug 29 2012

Keywords

Examples

			a(7) = 3: .o-o o o.  .o-o o o.  .o o o o.
          .|/     .  .|      .  .| |    .
          .o o o  .  .o o o  .  .o o o  .
		

Crossrefs

Column k=5 of A215977.
The labeled version is A215855.

Programs

  • Maple
    with(numtheory):
    b:= proc(n) option remember; local d, j; `if`(n<=1, n,
          (add(add(d*b(d), d=divisors(j)) *b(n-j), j=1..n-1))/(n-1))
        end:
    g:= proc(n) option remember; local k; `if`(n>2, 1, 0)+ b(n)-
          (add(b(k)*b(n-k), k=0..n) -`if`(irem(n, 2)=0, b(n/2), 0))/2
        end:
    p:= proc(n, i, t) option remember; `if`(n p(n, n, 5):
    seq(a(n), n=5..40);