Triangular numbers are formed by adding together consecutive natural numbers up to and including a given number n. They can be represented geometrically as the number of dots in an equilateral triangle of dots, or algebraically as binomial coefficients in Pascal's triangle. Pascal's triangle contributes to number theory by showing which numbers are triangular and allowing easy calculation of sums of triangular numbers.