Sub topic 1
Integers, zero, and sign: what the GRE means by "integer"
Most GRE integer questions are decided by one word in the setup: "integer", "positive integer", "nonnegative integer", or no qualifier at all. This chapter fixes the vocabulary. Later chapters on factors, primes, and remainders all depend on it.
Prerequisites
This chapter assumes you can:
- Do basic arithmetic with negative numbers and zero.
- Read exponent notation such as 2^3.
- Do long division and work with simple fractions.
No other background is needed.
What counts as an integer
An integer is a whole number with no fractional or decimal part. The set of integers is:
..., -3, -2, -1, 0, 1, 2, 3, ...
It extends forever in both directions. Three groups cover everything you need:
- Positive integers: 1, 2, 3, ... (greater than 0).
- Negative integers: -1, -2, -3, ... (less than 0).
- Zero, which is neither positive nor negative.
Some numbers look like integers but are not. The number 2.5 is not an integer. The number 4/2 is an integer, because it equals 2. The number 2.0 is also an integer, because its value is 2. The GRE cares about the value of a number, not how it is written.
Irrational numbers such as the square root of 2 and pi are never integers. Neither are non-integer fractions such as 7/2.
Zero is an integer, and it has special properties
Zero causes more mistakes than any other integer. Know these facts:
- Zero is an integer.
- Zero is neither positive nor negative.
- Zero is even. It is 2 times 0, and it leaves remainder 0 when divided by 2. The next chapter covers parity in full.
- Zero is a multiple of every integer, because 0 = n x 0 for any n.
- Zero is divisible by every nonzero integer. For example, 0 divided by 7 is 0, with no remainder.
- No integer is divisible by zero. Division by zero is undefined, so "0 is a factor of n" never makes sense as a divisibility claim.
- Zero is not a prime and not a composite number.
You can check the divisibility facts in Python:
print(0 % 7) # 0, so 0 is divisible by 7
print(7 % 7) # 0
print(-14 % 7) # 0, so -14 is a multiple of 7
try:
print(7 % 0)
except ZeroDivisionError:
print("division by zero is undefined")Reading the qualifiers on the GRE
The wording of the condition tells you which values you may test. The table lists the common phrases.
| Phrase | Includes | Excludes |
|---|---|---|
| integer | all negatives, 0, all positives | fractions and decimals that are not whole |
| positive integer | 1, 2, 3, ... | 0, negatives |
| negative integer | -1, -2, -3, ... | 0, positives |
| nonnegative integer | 0, 1, 2, 3, ... | negatives |
| nonpositive integer | 0, -1, -2, ... | positives |
| nonzero integer | all integers except 0 | 0 |
If a problem says only "x is a number" or gives no condition, x may be a fraction, a decimal, a negative, or zero. The GRE states "integer" when it wants you to restrict yourself. When it does not, you must not assume it.
Sign rules you need automatically
Products and quotients follow the same sign rules:
- Positive times positive is positive. Negative times negative is positive.
- Positive times negative is negative.
- Any product with a factor of 0 is 0.
A product of several nonzero integers is negative exactly when it has an odd number of negative factors. For example, (-2)(-3)(-5) = -30 has three negative factors, so it is negative.
Powers follow from this:
- A negative number raised to an even power is positive: (-3)^2 = 9.
- A negative number raised to an odd power is negative: (-3)^3 = -27.
- Zero to any positive power is 0.
Sums and differences are less regular. The sum of two negative integers is negative. The sum of a positive and a negative integer can have either sign. Subtracting a negative number adds: 5 - (-2) = 7.
Absolute value and size
The absolute value of x, written |x|, is its distance from 0 on the number line. So |-6| = 6 and |6| = 6. The absolute value of 0 is 0, and |x| is never negative.
A common trap: -10 is less than -2, even though 10 is larger than 2. On the number line, smaller means farther left. Compare negatives carefully, and remember that multiplying both sides of an inequality by a negative number reverses it.
The sign of an integer also affects how "factor" and "multiple" behave. The integers 6 and -6 have the same positive factors: 1, 2, 3, 6. Most GRE questions about factors mean positive factors. When a problem says "factor" or "divisor" with no other detail, it almost always refers to positive ones.
Classifying values with code
This short function classifies any value by exact arithmetic. It uses Fraction, so 4/2 is correctly seen as an integer.
from fractions import Fraction
def describe(value):
x = Fraction(value)
if x.denominator != 1:
return "not an integer"
n = x.numerator
if n == 0:
return "integer, zero (nonnegative, nonpositive, even)"
sign = "positive" if n > 0 else "negative"
return f"integer, {sign}"
for v in [5, 0, -3, "7/2", "4/2", "2.0", "-1.5"]:
print(v, "->", describe(v))Running it prints that 5 is a positive integer, 0 is zero, -3 is a negative integer, 7/2 is not an integer, 4/2 and 2.0 are positive integers, and -1.5 is not an integer.
Why this matters for test numbers
In a quantitative comparison, the two quantities may compare differently for different allowed values. The standard strategy is to try a small set of "test numbers" that cover the cases the setup allows. When the setup says "x is an integer", a good test set is:
- A positive integer greater than 1, such as 2 or 3.
- The number 1.
- Zero.
- A negative integer, such as -1 or -2.
If x may also be a non-integer, add a fraction between 0 and 1, such as 1/2.
Here is an example. Quantity A is x^2. Quantity B is x. The setup says x is an integer.
- x = 2 gives 4 and 2, so A is greater.
- x = 1 gives 1 and 1, so they are equal.
Two different outcomes already appear, so the answer is that the relationship cannot be determined. You did not need to test further. Once two test values give different results, you can stop.
Now change the setup to "x is a positive integer greater than 1". Then x^2 is always greater than x, and Quantity A is always greater. The added condition removes 0 and 1, the two values where equality occurs. This is why you read the qualifier before choosing test numbers.
Common mistakes
- Treating 0 as positive, or as "not a number you need to check". Zero is allowed unless the problem excludes it.
- Assuming a variable is an integer, or positive, when the problem does not say so.
- Forgetting that 0 is even and a multiple of every integer, which matters for "is it always divisible by..." questions.
- Calling 1 prime. The number 1 is neither prime nor composite, as a later chapter explains.
- Comparing negatives by their digits. The integer -8 is less than -3.
Exercise
A problem states that n is a nonnegative integer. Quantity A is n^2. Quantity B is 2n. Which quantity is greater, or can the relationship not be determined?
Show answer
The relationship cannot be determined. Testing n = 0 gives 0 and 0, so the quantities are equal. Testing n = 3 gives 9 and 6, so Quantity A is greater. Different outcomes mean the answer is "cannot be determined". If the problem had said "positive integer", n = 1 gives 1 and 2, and n = 3 gives 9 and 6, which still differ, so the answer would still be "cannot be determined".
Exercise
Which of these values are integers: 0, -7, 9/3, 0.5, 1.0, the square root of 2? Which of the integers are positive?
Show answer
The integers are 0, -7, 9/3 (which equals 3), and 1.0 (which equals 1). The values 0.5 and the square root of 2 are not integers. Of the integers, 9/3 and 1.0 are positive. The integer -7 is negative, and 0 is neither positive nor negative.
Exercise
True or false: "0 is a factor of every integer." Explain, and state what is actually true about 0 and divisibility.
Show answer
False. Saying 0 is a factor of n would mean n is divisible by 0, and division by 0 is undefined. What is true is the reverse: 0 is a multiple of every integer (0 = n x 0), and 0 is divisible by every nonzero integer.