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.

A218144 Number of inequivalent graphs on n nodes where two graphs are equivalent if adjacency is preserved under the action of the alternating group.

This page as a plain text file.
%I A218144 #20 Jul 09 2018 04:30:15
%S A218144 1,2,4,12,40,184,1296,17072,424992,20314096,1836858752,310029536960,
%T A218144 97286240288512,56843800957620672,62057188173197829888,
%U A218144 127071179605916892107264,489838590133142165412740096,3566828190793813383233169950592,49211415580467941255510544567667200
%N A218144 Number of inequivalent graphs on n nodes where two graphs are equivalent if adjacency is preserved under the action of the alternating group.
%H A218144 Andrew Howroyd, <a href="/A218144/b218144.txt">Table of n, a(n) for n = 1..50</a>
%e A218144 a(4) = 12 because we have the 11 classes of graphs (A000088) under the action of the symmetric group but the class represented by (say) 1-2-3-4 is separate from the class of graphs that could be represented by 2-1-3-4.
%t A218144 CoefficientList[Table[PairGroupIndex[AlternatingGroup[n],s]/.Table[s[i]->2,{i,1,Binomial[n,2]}],{n,1,7}],x]
%t A218144 (* Second program: *)
%t A218144 permcount[v_] := Module[{m = 1, s = 0, k = 0, t}, For[i = 1, i <= Length[v], i++, t = v[[i]]; k = If[i > 1 && t == v[[i - 1]], k + 1, 1]; m *= t*k; s += t]; s!/m];
%t A218144 edges[v_] := Sum[GCD[v[[i]], v[[j]]], {i, 2, Length[v]}, {j, 1, i - 1}] + Total[Quotient[v, 2]];
%t A218144 g[n_, r_] := (s = 0; Do[s += permcount[p]*(2^(r*Length[p] + edges[p])), {p, IntegerPartitions[n]}]; s/n!); a[1] = 1;
%t A218144 a[n_] := (s = 0; Do[If[EvenQ[Total[p - 1]], s += permcount[p]*2^edges[p]], {p, IntegerPartitions[n]}]; 2*s/n!);
%t A218144 Array[a, 20] (* _Jean-François Alcover_, Jul 09 2018, after _Andrew Howroyd_ *)
%o A218144 (PARI)
%o A218144 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 A218144 edges(v) = {sum(i=2, #v, sum(j=1, i-1, gcd(v[i],v[j]))) + sum(i=1, #v, v[i]\2)}
%o A218144 a(n) = {my(s=0); forpart(p=n, if(sum(i=1,#p,p[i]-1)%2==0, s+=permcount(p)*2^edges(p))); if(n==1, 1, 2*s/n!)} \\ _Andrew Howroyd_, May 22 2018
%Y A218144 Cf. A000088, A192332, A191563, A199574.
%K A218144 nonn
%O A218144 1,2
%A A218144 _Geoffrey Critzer_, Oct 21 2012
%E A218144 Terms a(11) and beyond from _Andrew Howroyd_, May 22 2018