5 = 11 + 14. Show by computing each expression that 25 mod 6 = (11 mod 6 + 14 mod 6) mod 6
Read moreTable of Contents
1.1
Statements, Symbolic Representation, and Tautologies
1.2
Propositional Logic
1.3
Quantifiers, Predicates, and Validity
1.4
Predicate Logic
1.5
Logic Programming
1.6
Logic Programming
2.1
Proof Techniques
2.2
Induction
2.3
More on Proof of Correctness
2.4
Number Theory
3.1
Recursive Definitions
3.2
Recurrence Relations
3.3
Analysis of Algorithms
4.1
Sets
4.2
Counting
4.3
Principle of Inclusion and Exclusion; Pigeonhole Principle
4.4
Permutations and Combinations
5.1
Relations
5.2
Topological Sorting
5.3
Relations and Databases
5.4
Functions
5.5
Order of Magnitude
5.6
The Mighty Mod Function
5.7
Matrices
6.1
Graphs and Their Representations
6.2
Trees and Their Representations
6.3
Decision Trees
6.4
Huffman Codes
7.1
Directed Graphs and Binary Relations; Warshalls Algorithm
7.2
Euler Path and Hamiltonian Circuit
7.3
Shortest Path and Minimal Spanning Tree
7.4
Traversal Algorithms
7.5
Articulation Points and Computer Networks
8.1
Boolean Algebra Structure
8.2
Logic Networks
8.3
Minimization
9.1
Algebraic Structures
9.2
Coding Theory
9.3
Finite-State Machines
9.4
Turing Machines
9.5
Formal Languages
Textbook Solutions for Mathematical Structures for Computer Science
Chapter 5.6 Problem 7
Question
Prove that for any integers x and y,
\((x \cdot y) \ \mathrm {mod} \ n = (x \ \mathrm {mod} \ n \cdot y \ \mathrm {mod} \ n) \ \mathrm {mod} \ n\)
Solution
The first step in solving 5.6 problem number 7 trying to solve the problem we have to refer to the textbook question: Prove that for any integers x and y, \((x \cdot y) \ \mathrm {mod} \ n = (x \ \mathrm {mod} \ n \cdot y \ \mathrm {mod} \ n) \ \mathrm {mod} \ n\)
From the textbook chapter The Mighty Mod Function you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
Subscribe to view the
full solution
full solution
Title
Mathematical Structures for Computer Science 7
Author
Judith L. Gersting
ISBN
9781429215107