It has been shown that if is a simple graph with vertices, edges, an average (per edge) of triangles occurring on the edges, and , then . The extremal graphs for this inequality for and have been determined. For , the extremal graphs are the Turán graphs with parts of equal size; notice that these are the complements of the strongly regular graphs with . For , the extremal graphs are the complements of the strongly regular graphs with . (The only such graphs known to exist are the Moore graphs of diameter ).
For and , it has recently been shown that the only extremal graph (except when ) is . Here, we use a well-known theorem of Andrásfai, Erdős, and Sós to characterize the extremal graphs for , any given value of , and sufficiently large (they are the regular bipartite graphs). Then we give some examples of extremal non-bipartite graphs for smaller values of .