OFFSET
0,5
COMMENTS
A connected graph satisfies this property if every edge belongs to at least one 3-clique (triangle). Equivalently, for every edge (u, v), there exists at least one vertex w such that both (u, w) and (v, w) are also edges in the graph.
Terms for n >= 8 were computed by the author using a custom MapReduce algorithm.
LINKS
Banri Ogawa, C++ program
Banri Ogawa, oeis-A396149-data, GitHub repository containing statistical data of various graph invariants for these graphs.
EXAMPLE
For n = 3, the a(3) = 1 graph is the complete graph K_3.
PROG
(C++) // See Links
(PARI) a(n)={if(n<3, return(n<2)); my(E=concat(vector(n-1, i, vector(n-i, j, [i, i+j]))), R=List()); for(m=0, 2^#E-1, my(G=matrix(n, n)); for(e=1, #E, if(bittest(m, e-1), G[E[e][1], E[e][2]]=G[E[e][2], E[e][1]]=1)); if(vecmin(vecmin((matid(n)+G)^(n-1)))>0 && vecmin(vecmin(G^2-G))>=0, my(maxG=""); forperm(n, p, my(Gp=Str(matrix(n, n, i, j, G[p[i], p[j]]))); if(Gp>maxG, maxG=Gp)); listput(R, maxG))); #Set(R)}
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Banri Ogawa, May 18 2026
EXTENSIONS
a(12) from Sean A. Irvine, May 22 2026
STATUS
approved
