Divisible by 7?

Last night, I was exploring the Internet, when I stumbled across a very cool diagram. It look like this:

With this graph, you can see what numbers are divisible by 7. Lets take the number 1234567. You would first start at the white node at the bottom. First move 1 black arrow, then 1 white arrow, then 2 black arrows, then 1 white arrow, then 3 black arrows, the 1 white arrows, and so on and so forth. For each digit number of black arrows you move, you move 1 white arrow. If you end up at the start, then it is divisible by 7. However number of black arrows away from the start you are is the remainder. Can someone prove this?

Note by Jonathan Hsu
4 years, 10 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}


Sort by:

Top Newest

I think i have figured out the proof.

So, starting from the starting point mark the junctions as 0,1,2,3,4,5,60, 1, 2, 3, 4, 5, 6. Note that every junction represents the number [mod7][mod 7] .

Now choose any number and start the procedure. Let your first digit is aa. Follow the black arrow aa times. You will currently be at a juction that represents a[mod7]a [mod 7].

Now, if you have one more digit then you are asked to move in the direction of the correspondong white arrow.

These white arrows are so arranged that the corresponding white arrow takes you to the place a×10[mod7]a \times 10 [mod 7] (You can check it for all 77 cases.).

It means now you are at a0[mod7]\overline{a0} [mod 7].

Now, if your next digit is bb, you will , after moving bb black arrows will reach at abmod[7]\overline{ab} mod[7] position.

This will continue and at any step you will be at the position that represents your current number [mod7][mod 7].

By this, the working of this diagram is explained and using the same method I have made diagrams for divisibilty tests of 6,86, 8 & 1111.

Dhruv Bhasin - 4 years, 10 months ago

Log in to reply

Awesome! Upvoted!

Andrew The - 4 years, 10 months ago

Log in to reply

Another cool thing about multiples of 7 is that if you multiply the last digit by 5, and add it to the remaining number, it will always be a multiple of 7. For example:

84: 8 + 4×54 \times 5 = 28 = 4×74 \times 7

161: 16 + 1×51 \times 5 = 21 = 7×37 \times 3

And this does not only apply to multiples of 7. Take multiples of 13, for example. When the last digit is multiplied by 4, the sum of that and the remaining number will also be a multiple of 13. For example:

26: 2 + 6×46 \times 4 = 26 (this kind of becomes a loop, but you get the point.

I have documented how this works for many numbers… (From what I have seen, it only occurs with some numbers)

3: Multiply last digit by 1 (3 * 3 = 10 − 1)

7: Multiply last digit by 5 (7 * 7 = 50 − 1

9: Multiply last digit by 1 (9 * 1 = 10 − 1)

11: Multiply last digit by 10 (11 * 9 = 100 − 1)

13: Multiply last digit by 4 (13 * 3 = 40 − 1)

17: Multiply last digit by 12 (17 * 7 = 120 − 1)

19: Multiply last digit by 2 (19 * 1 = 20 − 1)

The notes in parentheses are observations I have made. But can someone explain why?

Ashwin Padaki - 4 years, 10 months ago

Log in to reply

That's a nice observation. I will prove this for 77.

Let the given number be n=apap1..........a0n=\overline {a_p a_{p-1} ..........a_0}. This number is also given to be a multiple of 77.As the 'trick' involves only the last digit and the remaining number, let's reduce this whole number to ab\overline {ab} where b=a0b=a_0 and a=apap1.........a1(mod7)a= \overline{a_p a_{p-1}.........a_1} (mod 7).

The algorithm is multipying bb by 55 and adding it to aa.

So, we will be left with the number

m=a+5bm= a+ 5\cdot b and we are required to prove that m=0(mod7)m=0 (mod 7)

Now note that

10m(mod7)=10a+50b(mod7)10\cdot m (mod7) = 10\cdot a+ 50\cdot b (mod7)

=10a+b(mod7) =10\cdot a+ b (mod 7) [because, 50=1(mod7)50=1 (mod 7)]

=ab(mod7)=0(mod7) = \overline {ab} (mod7)=0(mod 7)

10m=0(mod7)\Rightarrow 10\cdot m=0 (mod 7)

m=0(mod7)\Rightarrow m=0 (mod 7) .

Hence proved.

On similar lines, you can also prove it for other numbers.

Dhruv Bhasin - 4 years, 10 months ago

Log in to reply

@Dhruv Bhasin Wow!!! Next time in math class, when my teacher asks me if 882 is divisible by 7, or if 912 is divisible by 19, I can say yes in an instant!!!

Ashwin Padaki - 4 years, 9 months ago

Log in to reply

@Ashwin Padaki Try this

Dhruv Bhasin - 4 years, 9 months ago

Log in to reply

Where did you learn about this? It is very neat

Andrew The - 4 years, 10 months ago

Log in to reply

Wow! It's a great thing you even figured the whole trick . If I would have seen it somewhere on the net , I'd have thought it was something related to Physics and would have closed the tab :P

A Former Brilliant Member - 4 years, 10 months ago

Log in to reply

Can any of you guys create a diagram like this for testing multiples of 13 or 17 or 19 or any prime numbers greater than 5? It would be really cool!

Jonathan Hsu - 4 years, 10 months ago

Log in to reply

Here's one for 13. (I have used single arrow in place of black and double in place of white)

Dhruv Bhasin - 4 years, 10 months ago

Log in to reply

And question: How do you come up with these pictures? Is there some sort of trick to it?

Jonathan Hsu - 4 years, 9 months ago

Log in to reply

@Jonathan Hsu There's no 'trick' to it, its just a application of 'remainders' or 'modulo arithmetic' and I have explained it all in a comment above namely "I think I have figured out the proof.........". Understand from there how the diagram of 77 is working and you will be able to make similar diagrams for any number. If you have any doubt in the explaination, do ask.

Dhruv Bhasin - 4 years, 9 months ago

Log in to reply

@Dhruv Bhasin ok thanks!

Jonathan Hsu - 4 years, 9 months ago

Log in to reply


Problem Loading...

Note Loading...

Set Loading...