Discrete mathematics and its application