Remainder of all 3's

Let n n be a positive integer such that it is composed solely of the digit 3 (in decimals). If n n is divisible by 383, find the remainder of n 383 \dfrac{n}{383} divided by 1000.


The answer is 651.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Let's call x = n 383 x = \frac{n}{383} , then n = 383 x 333 ( m o d 1000 ) n = 383x \equiv 333 \pmod{1000} \Rightarrow 47 383 x = 18001 x x 47 333 651 ( m o d 1000 ) 47\cdot 383x = 18001x \equiv x \equiv 47\cdot 333 \equiv 651 \pmod{1000} Note, Bonus : Does x really exist?

Yeah x exists.

Wen Z - 4 years, 9 months ago

For anyone wondering, the 47 can be found by using the Euclidean Algorithm.

Alexander Xue - 4 years, 9 months ago

Log in to reply

Yes, you have to solve this diophantine equation 383x + 1000y = 1 for finding the inverse of 383 mod 1000. How you can see the gcd(383, 1000) = 1, so this diophantine equatione has infinite solutions (x,y)...

Guillermo Templado - 4 years, 9 months ago

For bonus: Yes. Every prime number /(p/) has an inverse decimal sequence with period /(k/). This seq /(n/) can be multiplied by /(p/), such that /(pn = 10^k-1/). Since gcd/((p,3)=1/), you can divide /(pn/) by 3 and get the value of 333...333 which is a multiple of /(p/). In the case of this problem you find /(k=382m/) where /(m/) is any positive integer.

A great example is to look at /(1/7=.142857142857.../). If you take the value of 142857 and multiply it by 7, you get the value /(999999=10^6-1/).

Jaleb Jay - 4 years, 9 months ago

That's true, but can you prove that the decimal sequence repeats? I would say that's the hardest step doing it that way.

Wen Z - 4 years, 9 months ago
Zee Ell
Aug 15, 2016

After trying out the first few (4, 5, ... - digit "all 3") values, we will find, that n could possibly have many more digits.

Then we write n in the following form:

k = n 383 n = 383 k k = \frac {n}{383} \iff n = 383k

383k = 100000m + 33333 , k , m Z k, \ m \in \mathbb {Z}

What we are looking for, is the number formed of the last 3 digits of k.

Now, what we basically have is a simple multiplication with missing digits:

383 × . . . = . . . 33333 383 × ... \square \square \square = ... 33 333

We can also turn it into a division, which we will be doing it in an unusual way, "backwards" (starting from the last digit of the number, we divide; if the divisor is known to be a factor, we can do so):

. . . 33333 ÷ 383 = . . . ... 33 333 ÷ 383 = ... \square \square \square

Let's solve this:

. . . 33333 ÷ 383 = . . . 6 5 1 ... 33 333 ÷ 383 = ... \boxed {6} \boxed {5} \boxed {1}

-383 × 1

...32950

-3830 × 5

...13800

We got these a b c \overline {abc} digits by considering the possible digits, when multiplying a number by 3:

3c = ...3, the only integer solution between for 0 ≤ c ≤ 9 (decimal digit) is c = 1

3b = ...5 (5 is the place value of the Tens in ...2950), the only integer solution between for 0 ≤ b ≤ 9 (decimal digit) is b = 5

3a = ...8 (8 is the place value of the Hundreds in ...13800), the only integer solution between for 0 ≤ a ≤ 9 (decimal digit) is a = 6

Therefore, the remainder when dividing k by 1000 (the last 3 digits of k) is: 651 \boxed {651}

Good solution. It seems we don't really need the condition that all digits of n are 3s, we just need the weaker condition that the last 3 digits of n are 3s.

Wei Chen - 4 years, 10 months ago
Wen Z
Aug 25, 2016

Okay well what's missing from other solutions is the fact that x x really exists. Well, to do the bonus question from @Guillermo Templado note that

1 0 p 1 1 ( mod p) 10^{p-1} \equiv 1 (\text{mod p)} so 1 0 382 1 ( mod 383 ) 10^{382} \equiv 1 (\text{mod 383})

i.e 383 9999....9999 383|9999....9999 where there are 382 9s.

Now 383 3333....3333 383|3333....3333 (382 threes) because if p a b p|ab then either p a p|a or p b p|b where p p is prime, then sub in p = 383 , a = 3 , b = 3333...3333 p=383, a=3, b=3333...3333 and we're done.

Great,(+1) \uparrow

Guillermo Templado - 4 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...