Problem

Source: Russian TST 2016, Day 11 P3 (Group NG), P4 (Group A)

Tags: combinatorics, graph theory



A simple graph has $N{}$ vertices and less than $3(N-1)/2$ edges. Prove that its vertices can be divided into two non-empty groups so that each vertex has at most one neighbor in the group it doesn't belong to.