Divides Method
Description
The code a.divides(b) returns TRUE of $a$ divides $b$.
Sage Cell
Code
c = 5
c.divides(20)
Options
None
Tags
Primary Tags: number theory
Secondary Tags: divisibility
Related Cells
- The Modulus Operator
- The Quotient-Remainder Method
- The Greatest Common Divisor Command
- The Extended Greatest Common Divisor Command
- The Is-Prime Method
- The Random Prime Command
- The Prime Range Command
- The Next Prime Command
- The Previous Prime Command
- The Factor Command
Attribute
Permalink: http://abstract.ups.edu/aata/integers-sage.html
Author: R. Beezer
Date: 15 Jul 2017 08:02
Submitted by: Tom Judson