Click number of a graph according to its order and average degree

Let $ G $ be simple graphic order $ N $and let $ bar {d} $ to be his average degree.

  1. Find the maximum value of $ omega (G) $ (the number of cliques $ G $) as a function of $ N $ and $ bar {d} $.

  2. Find the minimum value of $ omega (G) $ as a function of $ n $ and $ bar {d} $.

  3. What are the minimum and maximum values ​​of $ omega (G) $ when $ G $ is $ d $-ordinary?