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.

A304222 Triangle T(n,k) read by rows: number of simple connected graphs with n nodes and k endpoints, n >= 0, 0 <= k <= n.

This page as a plain text file.
%I A304222 #19 Jan 25 2021 20:17:16
%S A304222 1,1,0,0,0,1,1,0,1,0,3,1,1,1,0,11,5,3,1,1,0,61,29,14,5,2,1,0,507,224,
%T A304222 86,25,8,2,1,0,7442,2666,762,184,48,11,3,1,0,197772,50779,10173,1890,
%U A304222 374,72,16,3,1,0,9808209,1653431,220627,29252,4252,660,115,20,4,1,0
%N A304222 Triangle T(n,k) read by rows: number of simple connected graphs with n nodes and k endpoints, n >= 0, 0 <= k <= n.
%C A304222 Endpoints are vertices with 0 or 1 (less than 2) edges.
%H A304222 Andrew Howroyd, <a href="/A304222/b304222.txt">Table of n, a(n) for n = 0..1325</a> (rows 0..50)
%e A304222 The triangle starts in row n=0 with column 0 <= k <= n as:
%e A304222        1;
%e A304222        1,     0;
%e A304222        0,     0,     1;
%e A304222        1,     0,     1,    0;
%e A304222        3,     1,     1,    1,   0;
%e A304222       11,     5,     3,    1,   1,  0;
%e A304222       61,    29,    14,    5,   2,  1,  0;
%e A304222      507,   224,    86,   25,   8,  2,  1, 0;
%e A304222     7442,  2666,   762,  184,  48, 11,  3, 1, 0;
%e A304222   197772, 50779, 10173, 1890, 374, 72, 16, 3, 1, 0;
%o A304222 (PARI)
%o A304222 InvEulerMT(u)={my(n=#u, p=log(1+x*Ser(u)), vars=variables(p)); Vec(sum(i=1, n, moebius(i)*substvec(p + O(x*x^(n\i)), vars, apply(v->v^i,vars))/i) )}
%o A304222 permcount(v) = {my(m=1, s=0, k=0, t); for(i=1, #v, t=v[i]; k=if(i>1&&t==v[i-1], k+1, 1); m*=t*k; s+=t); s!/m}
%o A304222 edges(v) = {sum(i=2, #v, sum(j=1, i-1, gcd(v[i], v[j]))) + sum(i=1, #v, v[i]\2)}
%o A304222 G(n)={sum(k=0, n, my(s=0); forpart(p=k, s+=permcount(p) * 2^edges(p) * prod(i=1, #p, (1 - x^p[i])/(1 - (x*y)^p[i]) + O(x*x^(n-k)))); x^k*s/k!)}
%o A304222 T(n)={my(v=InvEulerMT(Vec(G(n)-1))); v[2]=y^2; concat([[1]], vector(#v, n, Vecrev(v[n], n+1))) }
%o A304222 my(A=T(10)); for(n=1, #A, print(A[n])) \\ _Andrew Howroyd_, Jan 22 2021
%Y A304222 Cf. A001349 (row sums), A004108 (first column), A055290 (trees only), A327371.
%K A304222 nonn,tabl
%O A304222 0,11
%A A304222 _R. J. Mathar_, May 11 2018
%E A304222 Terms a(55) and beyond from _Andrew Howroyd_, Jan 22 2021