Abstract Algebra: Theory and Applications · Problem 2.8.6

Groups — Thomas Judson

Mathematics — Abstract Algebra · sage-divisibility-test

Problem

Write a compute cell that defines the same value of c again, and then defines a candidate divisor of c named d. The third line of the cell should return True if and only if d is a divisor of c. Illustrate the use of your cell by testing your code with d=7d = 7 and in a new copy of the cell, testing your code with d=11d = 11.

Related theory

Browse the problem library