Revision Notes
AQA A-Level Computer Science (7517): Number systems – Revision Notes
Condensed AQA 7517 section 4.5.1 recall: natural, integer, rational, irrational, real and ordinal numbers, counting and measurement, with a self-test.
- Subject
- Computer Science
- Level
- A LEVELS
- Topic
- Fundamentals of data representation
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to AQA A Level Computer Science (7517), 2015-onwards. Official specification .
Syllabus page (what it covers and how it is assessed): AQA A Level Computer Science.
Syllabus points this page covers
7517
- 4.5.1 Number systems
This page covers 1 of the 6 subtopics in topic 5, Fundamentals of data representation.
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (7517).
Condensed recall for 4.5.1 Number systems, AQA A-Level Computer Science (7517): natural numbers, integers, rational numbers, irrational numbers, real numbers, ordinal numbers, and the use of natural numbers for counting and real numbers for measurement. Fuller explanations are in the number systems study guide; exam-style questions are in the number systems practice questions.
The sets at a glance
| Set | Symbol | Description | Examples |
|---|---|---|---|
| Natural numbers | ℕ | {0, 1, 2, 3, …}: whole numbers from zero upwards | 0, 7, 400 |
| Integers | ℤ | {…, −2, −1, 0, 1, 2, …}: whole numbers, positive, negative or zero | −9, 0, 15 |
| Rational numbers | ℚ | Can be written as a fraction of integers (a ratio) | 3/4, −2/5, 7 (= 7/1), 0.75 |
| Irrational numbers | none | Cannot be written as a fraction | √2, π |
| Real numbers | ℝ | All “possible real world quantities”: includes ℕ, ℚ and the irrationals | all of the above |
The sets nest: ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ. Irrational numbers lie in ℝ but not in ℚ. Every real number is either rational or irrational.
Decimal forms
- Rational: the decimal terminates (0.125) or repeats for ever (0.333…, 0.142857142857…).
- Irrational: the decimal never terminates and never repeats (√2 = 1.41421356…).
- A long decimal is not automatically irrational. Look for a repeating pattern.
Classification table
| Number | ℕ | ℤ | ℚ | Irrational | ℝ |
|---|---|---|---|---|---|
| 0 | yes | yes | yes | no | yes |
| −5 | no | yes | yes | no | yes |
| 3/8 | no | no | yes | no | yes |
| 0.333… | no | no | yes | no | yes |
| √16 | yes | yes | yes | no | yes |
| √2 | no | no | no | yes | yes |
| π | no | no | no | yes | yes |
Traps: √16 = 4 is natural. √2 is irrational. 7 is rational because 7 = 7/1.
Worked classification
Place 18, −7, 5/6, √9, √7 and 0.125 in the smallest of ℕ, ℤ, ℚ or “irrational” that holds each one.
- 18 is a whole number from zero upwards, so it is in ℕ.
- −7 is a whole number but negative, so it is in ℤ and not in ℕ.
- 5/6 is a fraction of integers, so it is in ℚ.
- √9 = 3, so it is in ℕ.
- √7 = 2.6457…, which does not end or repeat, and 7 is not a perfect square, so it is irrational.
- 0.125 = 1/8, a terminating decimal, so it is in ℚ.
The method: ask “natural?”, then “integer?”, then “fraction of integers?”, and if none, “irrational?”.
Ordinal numbers
- An ordinal number tells the position of an object in an ordered arrangement: 1st, 2nd, 3rd.
- If S = {‘a’, ‘b’, ‘c’, ‘d’} is a well-ordered set, ‘a’ is the 1st object, ‘b’ the 2nd and so on.
- In programs the nearest idea is an index. The 3rd item is at index 2 in a language that counts from 0.
- A cardinal number tells how many (“three items”).
Counting and measurement
| Counting | Measurement | |
|---|---|---|
| Uses | Natural numbers | Real numbers |
| Result | Exact whole number | Any value on a continuous scale |
| Example | Number of students | Height, mass, time, temperature |
| Data type | Integer | Real (floating point) |
A count is exact. A measurement has limited precision, set by the instrument and the number of digits recorded.
Infinite sets and countability
- ℕ, ℤ and ℚ are countably infinite: they can be matched one-for-one with ℕ.
- ℝ is not countable.
- A computer has finite memory, so it can store only a finite number of values. Irrational numbers can only be stored as approximations.
Which data type?
| Quantity | Number kind | Representation |
|---|---|---|
| Items in a basket | Natural | Integer |
| Change in score (can be negative) | Integer | Signed integer |
| Price to the nearest penny | Rational | Fixed point or integer pence |
| Length of a table | Real | Floating point |
| Finishing position | Ordinal | Integer rank |
Exam traps
- Zero is natural in this specification.
- Integers are rational, not outside ℚ.
- Repeating decimals are rational.
- Perfect-square roots are not irrational.
- Ordinal against cardinal: position against quantity.
- Real numbers contain the rationals and irrationals; they are not an extra family.
- Counting is natural, measurement is real. State both when asked.
Key terms
| Term | Definition |
|---|---|
| Natural number | A whole number from zero upwards (member of ℕ) |
| Integer | A whole number, positive, negative or zero (member of ℤ) |
| Rational number | A number that can be written as a fraction of two integers (member of ℚ) |
| Irrational number | A number that cannot be written as a fraction |
| Real number | Any number on the continuous number line (member of ℝ) |
| Ordinal number | A number giving the position of an object in an ordered set |
| Countably infinite | Infinite, but able to be matched one-for-one with the natural numbers |
| Measurement | Finding the size of a continuous quantity, giving a real number |
Self-test
- Write ℕ using set notation.
- Is zero a natural number in this specification?
- Which set contains −3 but not 2.5?
- Why is 9 a rational number?
- Give two examples of irrational numbers.
- Is √49 rational or irrational?
- Is 0.272727… rational or irrational?
- State the relationship between ℕ, ℤ, ℚ and ℝ.
- What does an ordinal number describe?
- Which type of number is used for counting and which for measurement?
Answers
- {0, 1, 2, 3, …}.
- Yes.
- ℤ, the integers.
- It can be written as the fraction 9/1.
- Any two, for example √2 and π.
- Rational: √49 = 7, a whole number.
- Rational: it is a repeating decimal (27/99 = 3/11).
- ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ: each set is contained in the next.
- The position of an object in an ordered arrangement, such as 1st or 2nd.
- Natural numbers for counting and real numbers for measurement.
More resources on this topic
Related resources
-
Study guides
AQA A-Level Computer Science (7517): Representing images, sound and other data
Deeper guide to AQA 7517 section 4.5.6: bitmap and vector graphics, sampled sound and MIDI, analogue and digital conversion, compression and encryption.
Computer Science · AQA · A Level
Read guide -
Practice questions
AQA A-Level Computer Science (7517): Representing images, sound and other data – Practice Questions
Original AQA 7517 section 4.5.6 questions with answers: bitmap and vector graphics, sound, MIDI, compression and encryption, with calculations.
Computer Science · AQA · A Level
Try questions -
Revision notes
AQA A-Level Computer Science (7517): Representing images, sound and other data – Revision Notes
Condensed AQA 7517 section 4.5.6 recall: bitmaps, vectors, sound, MIDI, ADC and DAC, compression and encryption, with calculations and a self-test.
Computer Science · AQA · A Level
Revise topic
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.