Let n be a positive integer such that it is composed solely of the digit 3 (in decimals). If n is divisible by 383, find the remainder of 3 8 3 n divided by 1000.
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.
Yeah x exists.
For anyone wondering, the 47 can be found by using the Euclidean Algorithm.
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)...
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/).
That's true, but can you prove that the decimal sequence repeats? I would say that's the hardest step doing it that way.
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 = 3 8 3 n ⟺ n = 3 8 3 k
383k = 100000m + 33333 , k , m ∈ 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:
3 8 3 × . . . □ □ □ = . . . 3 3 3 3 3
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):
. . . 3 3 3 3 3 ÷ 3 8 3 = . . . □ □ □
Let's solve this:
. . . 3 3 3 3 3 ÷ 3 8 3 = . . . 6 5 1
-383 × 1
...32950
-3830 × 5
...13800
We got these a b c 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: 6 5 1
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.
Okay well what's missing from other solutions is the fact that x really exists. Well, to do the bonus question from @Guillermo Templado note that
1 0 p − 1 ≡ 1 ( mod p) so 1 0 3 8 2 ≡ 1 ( mod 383 )
i.e 3 8 3 ∣ 9 9 9 9 . . . . 9 9 9 9 where there are 382 9s.
Now 3 8 3 ∣ 3 3 3 3 . . . . 3 3 3 3 (382 threes) because if p ∣ a b then either p ∣ a or p ∣ b where p is prime, then sub in p = 3 8 3 , a = 3 , b = 3 3 3 3 . . . 3 3 3 3 and we're done.
Great,(+1) ↑
Problem Loading...
Note Loading...
Set Loading...
Let's call x = 3 8 3 n , then n = 3 8 3 x ≡ 3 3 3 ( m o d 1 0 0 0 ) ⇒ 4 7 ⋅ 3 8 3 x = 1 8 0 0 1 x ≡ x ≡ 4 7 ⋅ 3 3 3 ≡ 6 5 1 ( m o d 1 0 0 0 ) Note, Bonus : Does x really exist?