I'm writing a proof for a discrete math class that is asking for proof that an integer is not prime (that for a perfect square, the integer immediately preceding the perfect square is not prime) where n is the perfect square and [imath]n = m^2[/imath] and the integer immediately preceding n is [imath]m^2 - 1[/imath]. I've factored this into [imath]m^2 - 1 = (m + 1)(m -1)[/imath]. My problem is that the definition in our book is:
An integer n is composite if, and only if, n > 1 and n=rs for some integers r and s with 1 < r < n and 1 < s < n.
My question is: why must r and s be positive (1 < r < n). If r and s are both negative, we still get the same positive n value. So for my problem of (m + 1)(m - 1), theoretically these could both be negative and still satisfy [imath]m^2 - 1 = (m + 1)(m - 1)[/imath]. For example, [imath]9 = 3^2 = (-3)^2[/imath] and [imath](-3 + 1)(-3 - 1) = (-2)(-4) = 8[/imath], which satisfies the problem. Is there a constraint that the factors of a composite number must be positive?
An integer n is composite if, and only if, n > 1 and n=rs for some integers r and s with 1 < r < n and 1 < s < n.
My question is: why must r and s be positive (1 < r < n). If r and s are both negative, we still get the same positive n value. So for my problem of (m + 1)(m - 1), theoretically these could both be negative and still satisfy [imath]m^2 - 1 = (m + 1)(m - 1)[/imath]. For example, [imath]9 = 3^2 = (-3)^2[/imath] and [imath](-3 + 1)(-3 - 1) = (-2)(-4) = 8[/imath], which satisfies the problem. Is there a constraint that the factors of a composite number must be positive?