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
3
votes
2 answers

Divisibility Rules of 2019

What is the divisibility rule or way to find that a number is divisible by 2019 and we can't divide the number by 2019 to test it? and how do we prove that the rule works for 2019? Help is appreciated!
3
votes
5 answers

Which number has the highest divisibility (factors)?

I'm trying to find out the most divisible numbers using the divisibility rules from 2-12, but i'm getting lost. Is there any online calculator that given a range of numbers(for me would be 2-12) will output the highest divisible numbers? Edit: Okay,…
Daniel
  • 133
3
votes
5 answers

Can $n - 1$ divide $n$, where $n$ is a positive, composite integer?

If $n$ is a positive and composite integer, can I prove that $n - 1$ does not divide $n$ for all $n$? If not, can you give me a counter example? I was trying to prove it by contradiction, but I was just running in a vicious circle. Any hint or…
3
votes
3 answers

How many times can I divide a number by another

How many times can I divide a number by another until I get a fractional number. For e.g. I can divide 100 by 2 two times before I get a fractional number i.e. 12.5. Is there any formula that given a number N and another number x I can get the no.…
Chief VOLDEMORT
  • 151
  • 1
  • 1
  • 7
3
votes
3 answers

Prove that if $a$ divides $b^2$ then $a$ divides $b$

I'm generalizing this, but in my proof I just need to explain why if $2$ divides $b^2$, then $2$ divides $b$. I could find the answer for if $a^2$ divides $b^2$ then $a$ divides $b$, but not for this question. I appreciate any help!
Van
  • 43
3
votes
1 answer

Smallest possible integer for when $\dfrac{x}{10}$ leaves a remainder of 9 and so on

I'm in 8th grade and my geometry teacher recommended that I read the art of problem solving. So I did and I have now read the chapter called "Integers". I am now doing some of the problems in the section and I came across this one which has stumped…
3
votes
2 answers

Divisibility problem

I got stuck with the following problem. Please give me an idea. Prove that for every natural number $n$ there is a number $\overline{a1 \cdots 1 b}$ which is divisible by $41$ and the number of $1$'s is exactly $n$.
Adam
  • 835
  • 2
  • 8
  • 14
3
votes
3 answers

A problem about multiples.

For any positive integers $a$, $ b$, if $ab+1$ is a multiple of $16$, then $a+b$ must be a multiple of $p$. Find the largest possible value of $p$. I have no idea how to solve this. Please help. Thank you.
JSCB
  • 13,456
  • 15
  • 59
  • 123
3
votes
2 answers

Find $x$ given remainder conditions

The problem: Find the smallest positive integer $x$ such that $x$ divided by $4$ has remainder $1$ $x$ divided by $5$ has reminder $2$ $x$ divided by $6$ has remainder $3$ Now, my first idea was to add to each divisor its the remainder and multiply…
PunkZebra
  • 1,595
3
votes
2 answers

True or False: If $a$|$b^2$ then $a^2$|$b^4$.

True or False. If the statement is true, give a proof. If it is false, give one example showing it is false. Suppose that a, b, c are integers. a) If a|c and b|c then ab|c. b) If a|bc then a|b or a|c. c) If a|$b^2$ then $a^2$|$b^4$. (a) is false;…
BrianW
  • 379
3
votes
3 answers

Number of divisors

How can I find number of divisors of N which are not divisible by K. ($2 \leq N$, $k \leq 10^{15})$ One of the most easiest approach which I have thought is to first calculate total number of divisors of 'n' using prime factorization (by Sieve of…
Snehasish
  • 185
  • 1
  • 8
3
votes
2 answers

Number of Divisor

How to find the Number of divisors of a number 'n' that are also divisible by another number 'k' without looping through all the divisors of n? I tried the following: Stored powers of all prime factors of n in an associative array A and did…
sabari
  • 145
3
votes
1 answer

Divisible to the right in circle

Numbers $1,2,\dots,300$ are placed in a circle in some order. At most how many numbers can be divisible by the number to its right? One way (probably optimal) is to place numbers so that $m$ is followed by $2m$ whenever possible. So the numbers…
pi66
  • 7,164
3
votes
2 answers

Dividing a Pizza with N Lines

How many regions can we divide a pizza with n lines? I can not find a formula. Lines Pieces 0 1 1 2 2 4
user299549
3
votes
4 answers

Prove that $5\mid 8^n - 3^n$ for $n \ge 1$

I have that $$5\mid 8^n - 3^n$$ The first thing I tried is vía Induction: It is true for $n = 1$, then I have to probe that it's true for $n = n+1$ $$5 \mid 8(8^n -3^n)$$ $$5 \mid 8^{n+1} -8\cdot3^n$$ $$5 \mid 3(8^{n+1} -8\cdot3^n)$$ $$5 \mid…
JorgeeFG
  • 493