Questions tagged [divisibility]

This tag is for questions about divisibility, that is, determining when one thing is a multiple of another thing.

If $a$ and $b$ are integers, $a$ divides $b$ if $b=ca$ for some integer $c$. This is denoted $a\mid b$. It is usually studied in introductory courses in number theory, so add if appropriate.

A common notation used for the phrase "$a$ divides $b$" is $a|b$. It is also common to negate the notation by adding a slash like this: "$c$ does not divide $d$" written as $c\nmid d$. Note that the order is important: for example, $2|4$ but "$4\nmid 2$".

This notion can be generalized to any ring. The definition is the same: For two elements $a$ and $b$ of a commutative ring $R$, $a$ divides $b$ if $ac=b$ for some $c$ in $R$.

Divisibility in commutative rings corresponds exactly to containment the poset of principal ideals. That is, $a$ divides $b$ if and only if $aR\subseteq bR$. For commutative rings like principal ideal rings, this means that divisibility mirrors exactly the poset of all ideals of the ring.

The topics appropriate for this tag include, for example:

  • Questions about the relation $\mid$.
  • Questions about the GCD and LCM.

There are divisibility rule that is a shorthand way of determining whether a given integer is divisible by a fixed divisor without performing the division, usually by examining its digits.

6170 questions
15
votes
2 answers

Does zero divide zero

I wanted to know is zero divisible by zero? I've read that division by zero is not allowed in mathematics, but for instance in Apostol's Introduction to analytic number theory, it states that only $0$ divides $0$, and I've seen problems in form…
user325789
12
votes
3 answers

Prove that $x$ and $x+1$ are coprime numbers

Given $\{x \mid x > 1\}$, how do I prove that any given $x$ and $x+1$ are coprime?
12
votes
5 answers

Proof of the divisibility rule of 17.

Rule: Subtract 5 times the last digit from the rest of the number, if the result is divisible by 17 then the number is also divisible by 17. How does this rule work? Please give the proof.
Eight
  • 733
12
votes
2 answers

Is "divisible by 15" the same as "divisible by 5 and divisible by 3"?

Is stating that a number $x$ is divisible by 15 the same as stating that $x$ is divisible by 5 and $x$ is divisible by 3?
11
votes
6 answers

LCM of First N Natural Numbers

Is there an efficient way to calculate the least common multiple of the first n natural numbers? For example, suppose n = 3. Then the lcm of 1, 2, and 3 is 6. Is there an efficient way to do this for arbitrary n that is more efficient than the naive…
8
votes
3 answers

Is $0$ divisible by $0$?

I know that there's resources out there but my professor told me that nothing is divisible by $0$ because you can't divide by $0$ which makes it a NaN The class is related to programming we are defining a "divisible" function that takes two…
Smit Shah
  • 303
  • 3
  • 12
7
votes
6 answers

Is $x/x$ equal to $1$

My question is whether $x/x$ is always equal to $1$. I am mostly intersted in real numbers and particularly wonder whether $x/x$ is defined at $x=0$. On one hand the division should simplify to $1$, on the other hand you should not be allowed to…
Dennis Jaheruddin
  • 925
  • 1
  • 6
  • 20
7
votes
6 answers

Prove that $(n^3 - 1)n^3(n^3 + 1)$ is divisible by $504$

How to prove that $(n^3 - 1)n^3(n^3 + 1)$ is divisible by $504$? Factoring $504$ yields $2^3 \cdot 3^2 \cdot 7$. Divisibility by $8$ can be easily seen, because if $n$ is even then $8 | n^3$, else $(n^3 - 1)$ and $(n^3 + 1)$ are both even and one of…
user4201961
  • 1,591
7
votes
4 answers

Divisibility Rule for 7 using 315462

Years ago while playing around with numbers came up with a divisibility rule for 7 using the number 315,462; where effectively you take the 'dot product' of your number with 315462 (repeated when necessary), and repeat. Example: Is 298,427,052…
sheppa28
  • 929
6
votes
1 answer

37 and Veritasium

In Veritasium's new video about 37 there is brought up something interesting about its multiples. For any multiple of 37 reverse it and put a 0 between all of its digits and the new number will be a multiple for 37 Example : $37 \rightarrow703…
ShrekLover
  • 139
  • 4
6
votes
8 answers

Prove that $6$ divides $n^3+11n$?

How can i show that $$6\mid (n^3+11n)$$ My thoughts: I show that $$2\mid (n^3+11n)$$ $$3\mid (n^3+11n)$$ And $$n^3+11n=n\cdot (n^2+11)$$ And if $n=x\cdot 3$ for all $x \in \mathbb{N}$ then: $$3\mid (n^3+11n)$$ And if not: The cross sum…
greedsin
  • 571
5
votes
2 answers

Proving $\gcd( m,n)$=1

If $a$ and $b$ are co prime and $n$ is a prime, show that: $\frac{a^n+b^n}{a+b}$ and $a+b$ have no common factor unless $a+b$ is a multiple of $n$ Also enlighten me why $n$ has to be prime so that $\frac{a^n+b^n}{a+b}$ and $a+b$ have no common…
Tom Lynd
  • 1,342
5
votes
3 answers

Divisibility by 7 of a number consisting of 0 and 1's

A decimal number is of arbitrary length consisting of 0 and 1 only i.e. (10,111,10000,11111,1010, number of digits in the number can be upto 100 ) Can this number ever be divisible by 7 if yes, is there any efficient way to list all those numbers
Ravi
  • 51
5
votes
2 answers

Sum of the digits of $99^{99}$?

I have been looking at this for quite a while, however I can't find a solution - I guess there needs to be a clever way to deal with this incredibly large number that I am not aware of... I actually need to figure out the digit sum of the digit sum…
5
votes
1 answer

$1^n$ + $2^n$ + · · · + $n^n$ is divisible by $n^2$ where $n$ is an odd positive integer

Let $n$ be an odd positive integer. Show that the sum $1^n$ + $2^n$ + · · · + $n^n$ is divisible by $n^2$. I tried induction on $n$ and thought of manipulating the terms by separating for example $3^{2n+3}$ into $3^{2n+1}\cdot 3^2$... then…
Randin
  • 802
1
2 3
30 31