Skip to content

Mathematics for Data Science: Natural Numbers, Integers, and Primes

Overview

This first module of Mathematics One for Data Science introduces fundamental number concepts used throughout data science and higher mathematics. Starting from counting with natural numbers, the lecture expands to integers, explores arithmetic operations, and ends with divisibility, factors, primes, and the unique prime factorization of integers.

Natural Numbers

  • Numbers are abstract quantities that describe what is common to groups of objects, such as seven balls and seven pencils both sharing the number 7.
  • Zero (of Indian origin) is essential because it represents counting nothing and makes the place-value number system work.
  • The natural numbers are often written as N and traditionally include 0, 1, 2, 3, 4, ... in this course. Some books exclude 0 and write N without it; to be clear, this course may write N0 or explicitly include 0. To understand their role in broader mathematical contexts, you can explore Set Theory: Definitions, Elements, and Subsets.

Integers and the Number Line

  • Subtraction exposes a limitation: 5 - 6 goes below zero, so negative numbers are introduced.
  • Natural numbers plus their negatives form the integers, written with a double-barred Z: ..., -3, -2, -1, 0, 1, 2, 3, ...
  • Natural numbers have a starting point, while integers extend infinitely in both directions.
  • The number line arranges integers left to right in increasing order.

Arithmetic Operations

Addition and Subtraction

  • Addition and subtraction are basic operations; subtraction is what leads from natural numbers to integers.

Multiplication

  • Multiplication is repeated addition: 7 × 4 means four copies of 7, giving 28.
  • Multiplication signs: 7 × 4 = 7 · 4; for symbols like m and n, writing mn means m × n.
  • Sign rule: one negative factor makes the product negative; two negatives make it positive. Even numbers of minus signs give positive results; odd numbers give negative results.

Exponentiation

  • Exponentiation is repeated multiplication: m × m is m2 (called squared because it forms a square); m × m × m is m3 (cubed).
  • Higher powers are written m^k and read as 'm to the power k'.

Division

  • Division can be viewed as repeated subtraction: sharing 20 mangoes among 5 friends takes 4 rounds, so 20 ÷ 5 = 4.
  • If 19 mangoes are divided among 5 friends, 3 full rounds are possible and 4 mangoes remain: quotient = 3, remainder = 4.
  • Remainder notation: 19 mod 5 = 4, where 'mod' means modulus/remainder.

Divisibility and Remainders

  • a divides b if b mod a = 0; this is written as a | b.
  • Equivalent form: b = a × k for some integer k, meaning b is a multiple of a.
  • A slash through the bar, e.g. 4 ∤ 19, means 'does not divide'.
  • Examples: 4 | 20, 7 | 63, and 32 | 1024.

Factors

  • A factor (or divisor) of a number b is any a that divides b evenly.
  • Factors come in pairs: if a divides b and b = a × k, then k is also a factor.
  • Example: 12 = 1 × 12 = 2 × 6 = 3 × 4, so its factor pairs are (1,12), (2,6), (3,4).
  • If a number is a perfect square, the middle factor pairs with itself, e.g. 36 has factor 6 appearing only once in the factor list.
  • Non-square numbers have an even number of factors; perfect squares have an odd number of factors.

Prime Numbers

  • A prime number has exactly two distinct positive factors: 1 and itself.
  • 1 is not prime because it has only one factor.
  • The smallest prime is 2, followed by 3, 5, 7, 11, ...
  • No even number greater than 2 can be prime because it is divisible by 2; 9 is not prime because it is divisible by 3.

Sieve of Eratosthenes

  • The sieve of Eratosthenes generates primes up to a limit by eliminating multiples of each found prime.
  • Method: write numbers in a grid, remove 1, circle/keep the first unmarked number as prime, then mark all its multiples as non-prime. Repeat with the next unmarked number.
  • Example for primes up to 100: start with 2, remove all multiples of 2; then 3 is prime, remove its remaining multiples; continue with 5, 7, etc.

Prime Factorization

  • Every integer can be uniquely decomposed into a product of primes (the prime factorization).
  • Example: 12 = 2 × 2 × 3 = 22 × 3.
  • Example: 126 = 2 × 3 × 3 × 7 = 2 × 32 × 7.
  • This uniqueness is a fundamental result used throughout mathematics. It also underpins more advanced applications, such as Cryptography with Prime Numbers and the RSA Algorithm.

Key Takeaways

  • Natural numbers are used for counting and include 0 in this course.
  • Integers extend natural numbers with negatives and form the number line.
  • Arithmetic operations: multiplication is repeated addition; exponentiation is repeated multiplication; division is repeated subtraction with quotients and remainders.
  • Divisibility, factors, and primes build the language of number theory.
  • Prime factorization decomposes any integer uniquely into primes.

For a deeper look at how these foundational concepts scale to more complex systems, see Number Systems: Natural Numbers, Integers, Rationals, and Reals.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.

Related summaries

Understanding the Real Number System: Key Concepts and Definitions

Understanding the Real Number System: Key Concepts and Definitions

Explore the fundamentals of the real number system, including natural numbers, whole numbers, and irrational numbers.

Statistics for Data Science: The Complete Beginner's Guide

Statistics for Data Science: The Complete Beginner's Guide

Master the essential statistics needed to become a data scientist. This comprehensive tutorial covers descriptive, predictive, and prescriptive analytics, probability distributions like binomial and Poisson, and key concepts like correlation, covariance, and the Central Limit Theorem, all explained with practical examples.

Understanding Addition and Subtraction: Basics of Arithmetic

Understanding Addition and Subtraction: Basics of Arithmetic

Explore the foundational concepts of addition and subtraction, the first arithmetic operations developed by humans. Learn how these operations work, their symbolic representations, and key properties like commutativity and associativity.

Class 10 Maths Half Yearly Marathon: Complete Revision of 8 Chapters

Class 10 Maths Half Yearly Marathon: Complete Revision of 8 Chapters

Join Ritik Mishra for an intensive Class 10 Maths half-yearly exam marathon. This session provides a rapid revision of 8 key chapters, including Real Numbers, Polynomials, Pair of Linear Equations, Quadratic Equations, Arithmetic Progressions, Triangles, Coordinate Geometry, and Trigonometry, with important exam-focused questions.

Probability & Statistics: The Ultimate Guide to Modeling Uncertainty (Course Intro)

Probability & Statistics: The Ultimate Guide to Modeling Uncertainty (Course Intro)

Professor Steve Brunton launches an exciting new short course on probability and statistics. This introductory overview explains why probability is a foundational tool for data science and machine learning, provides real-world examples from thermodynamics to weather, and outlines what you will learn in the first 10 hours dedicated to probability.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes