Write the following set in roster form and in​ set-builder notation.

P is the set of integers that are greater than -1 and less than 4 .

Roster form: P = {-1, 0, 1, 2, 3}

Set-builder notation: P = {x | x > -1 and x < 4}

To write the set P in roster form, we list all the elements of the set.

P = {-1, 0, 1, 2, 3}

To write the set P in set-builder notation, we use the following format:

P = {x | x is an integer, -1 < x < 4}

In set-builder notation, we describe the properties that the elements of the set must satisfy. In this case, we state that the elements must be integers within the given range.

The set P can be expressed in the roster form as {-1, 0, 1, 2, 3}.

In set-builder notation, P is written as:
P = {x | -1 < x < 4}