Home > Math for DS > Topics > Topic 1
Topic 1 of 10

๐Ÿ”ข Topic 1: Natural Numbers and Integers

Topic 1/10 โญ Foundation โฑ๏ธ ~15 min

๐ŸŽฏ Learning Objectives

  • Understand the definition and properties of natural numbers (โ„•)
  • Learn about integers (โ„ค) and their relationship to natural numbers
  • Master basic arithmetic operations and their properties
  • Understand division, quotient, remainder, and modulo operation
  • Explore divisibility and factors

1.1 Natural Numbers (โ„•)

๐Ÿšจ CRITICAL COURSE-SPECIFIC CONVENTION

In this course, natural numbers INCLUDE 0.

๐Ÿ“š Definition

Natural Numbers: โ„• = {0, 1, 2, 3, 4, ...}

Key Concepts

๐Ÿ”ข Purpose

Natural numbers are used for counting and represent abstract quantities.

๐Ÿ‡ฎ๐Ÿ‡ณ Historical Note

The number 0 is of Indian origin and is crucial for our place value numbering system.

๐ŸŽญ Abstract Nature

Numbers like 7 represent what is common between different collections (7 balls, 7 pencils).

โญ• Zero

Zero represents "nothing to count" but is essential for mathematics.

๐Ÿ“ Important Note

Some textbooks exclude 0 from natural numbers, but THIS COURSE INCLUDES IT. Always remember this convention for exams and assignments.

1.2 Integers (โ„ค)

๐Ÿ“š Definition

Integers: โ„ค = {..., -3, -2, -1, 0, 1, 2, 3, ...}

Key Properties

๐Ÿ”— Extension

Integers extend natural numbers with negative numbers

โІ Relationship

All natural numbers are integers: โ„• โІ โ„ค

๐Ÿ“ Discrete Nature

Integers are discrete: every integer (except boundaries) has a unique "next" and "previous" integer

๐Ÿ“Š Number Line Visualization

-3 -2 -1 0 1 2 3
Negative Integers Natural Numbers (โ„•) Positive Integers

1.3 Arithmetic Operations

Basic Operations on Integers

โž• Addition (+)

Combining quantities

Example: 5 + 3 = 8

โž– Subtraction (-)

Finding difference

Example: 10 - 4 = 6

โœ–๏ธ Multiplication (ร—)

Repeated addition

Example: 4 ร— 3 = 12

โž— Division (รท)

Splitting into equal parts

Example: 15 รท 3 = 5

๐Ÿ”ผ Exponentiation (^)

Repeated multiplication

Example: 2ยณ = 8

1.4 Division with Quotient and Remainder

๐Ÿ›๏ธ Division Algorithm

For integers a and b (where b โ‰  0):

$$a = b \times q + r$$

where:

  • q = quotient (integer number of times b goes into a)
  • r = remainder (what's left over)
  • 0 โ‰ค r < b

๐Ÿ’ก Example

Divide 17 by 5:

17 = 5 ร— 3 + 2
  • Quotient (q) = 3
  • Remainder (r) = 2

Modulo Operation

๐Ÿ“š Definition

a mod b = remainder when a is divided by b

Example 1:

17 mod 5 = 2

Since 17 = 5 ร— 3 + 2
Example 2:

20 mod 6 = 2

Since 20 = 6 ร— 3 + 2
Example 3:

15 mod 3 = 0

Since 15 = 3 ร— 5 + 0

1.5 Divisibility

๐Ÿ“š Definition

We say a | b (a divides b) if a mod b = 0

This means b is divisible by a with no remainder.

Factors

Factors of a number n are all numbers that divide n evenly (with remainder 0).

๐Ÿ’ก Example: Factors of 24

Let's find all numbers that divide 24:

1 | 24 โœ“ (24 รท 1 = 24)
2 | 24 โœ“ (24 รท 2 = 12)
3 | 24 โœ“ (24 รท 3 = 8)
4 | 24 โœ“ (24 รท 4 = 6)
6 | 24 โœ“ (24 รท 6 = 4)
8 | 24 โœ“ (24 รท 8 = 3)
12 | 24 โœ“ (24 รท 12 = 2)
24 | 24 โœ“ (24 รท 24 = 1)

Factors of 24: {1, 2, 3, 4, 6, 8, 12, 24}

๐Ÿƒโ€โ™‚๏ธ Practice Problems

Problem 1: Division Algorithm

Find the quotient and remainder when 47 is divided by 6.

Problem 2: Modulo Operation

Calculate: (a) 23 mod 7, (b) 100 mod 9, (c) 50 mod 10

Problem 3: Finding Factors

Find all factors of 36.

๐Ÿ”‘ Key Takeaways

  • Natural numbers include 0 in this course: โ„• = {0, 1, 2, 3, ...}
  • Integers extend natural numbers with negatives: โ„ค = {..., -2, -1, 0, 1, 2, ...}
  • Division algorithm: a = b ร— q + r, where 0 โ‰ค r < b
  • Modulo operation gives the remainder of division
  • Divisibility: a | b means a divides b with no remainder