Suppose the product of n consecutive, positive four-digit integers is divisible by 2 0 1 5 2 . What is the least possible value of n ?
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.
Cool problem! Yeah likewise I basically tried to find the minimum of ∣ 3 1 2 x − 1 3 2 y ∣ with positive integers x , y , and it suffices to run 1 3 2 3 1 2 x through the calculator for x = 2 , 3 , . . . , 1 0 and check if their decimal parts are close to 0 or 1 . e.g. 1 3 2 3 1 2 ⋅ 3 = 1 7 . 0 5 9 . . .
Log in to reply
Thanks! Yes, there is a bit of number-crunching, but it only takes a minute or two. I went with 2 0 1 5 2 rather than 2 0 1 6 2 because I was sure of the answer for the former but not the latter. For 2 0 1 6 2 I think that the minimum for n is 5 , with the product being 6 9 0 8 ∗ 6 9 0 9 ∗ 6 9 1 0 ∗ 6 9 1 1 ∗ 6 9 1 2 , but I would need to do more number-crunching to be absolutely sure.
Log in to reply
5 for 2 0 1 6 2 is not hard to verify. It suffices to look at: ∣ 5 1 2 x − 4 9 y ∣ < 5 for x = 2 , 3 , . . . , 1 9 . A quick decimal check (which can be further facilitated by considering 2 2 x ( m o d 4 9 ) ) gives us x = 9 , 1 8 , neither of which works because of that other divisibility: 3 4 .
Log in to reply
@Xuming Liang – O.k., great. Thanks for the verification. :)
The product must contain each of the prime factors 5, 13, 31 at least twice.
If n ≤ 3 1 , then one of the numbers should be a multiple of 3 1 2 . Likewise, if n ≤ 1 3 , then one of them should be a multiple of 1 3 2 . If n ≥ 1 0 , we are guaranteed to have at least two factors 5, so we won't worry about that factor yet.
So I need multiples of 1 3 2 and 3 1 2 that are relatively close together. A good place to start is the ratio 1 3 2 3 1 2 ≈ 5 . 6 8 6 . We like to approximate this ratio as a fraction a / b , where a and b are sufficiently small; then 3 1 2 b ≈ 1 3 2 a define the sequence of numbers that we look for. The requirement of four digits limits us to b ≤ 1 0 and a ≤ 5 9 .
The only candidates for approximating 5 . 6 8 6 … with a fraction of denominator no greater than 10 are 5 2 1 = 5 . 5 0 0 (poor), 5 3 2 ≈ 5 . 6 6 7 ; 5 7 5 ≈ 5 . 7 1 4 ; 5 1 0 7 = 5 . 7 0 0 . The lower denominators will result into smaller values for n .
5 2 1 → a = 1 1 , b = 2 gives 3 1 2 b = 1 9 2 2 and 1 3 2 a = 1 8 5 9 , which are rather far apart. We can do better!
5 3 2 → a = 1 7 , b = 3 gives 2 8 8 3 and 2 8 7 3 , so that n = 1 1 .
5 7 5 → a = 4 0 , b = 7 gives 6 7 2 7 and 6 7 6 0 , so that n = 3 4 .
5 1 0 7 → a = 5 7 , b = 1 0 gives 9 6 3 3 and 9 6 1 0 , so that n = 2 4 .
Our best option, then, is the second one, with n = 1 1 . In any sequence of 10 or more successive numbers, there are at least two multiples of 5, so that condition is fulfilled.
Nice solution, Arjen. I like your fractional approximation method; it makes for a more efficient general approach than mine.
Hi Arjen,
I like your approach using approximations of 1 3 2 3 1 2 . In your final statement you write that in any sequence of 10 or more successive numbers, there are at least two multiples of 5. This is indeed correct. However, earlier you remark "If n ≤ 1 0 , we are guaranteed to have at least two factors 5". This is only true when n ≥ 1 0 , so probably just a typo, right?
Kind regards, Patrick
@Brian Charlesworth Nice one this problem... seems easy but is a great application of the greedy algorithm. We just need to check the shortest distance between multiples of 31^2 and 13^2 and I believe the answer would be less than 11 if there was no condition on the number of digits.
If you put no constraint at all on the size of the integers, you could have n = 1 , picking the single number 2 0 1 5 2 .
If we allowed 5 -digit numbers, then since 1 5 3 7 5 = 5 2 × 6 1 5 , 1 5 3 7 6 = 3 1 2 × 1 6 and 1 5 3 7 9 = 1 3 2 × 9 1 , we could achieve n = 5 . That is the best possible for 5 -digit numbers.
Problem Loading...
Note Loading...
Set Loading...
We first note that 2 0 1 5 = 5 × 1 3 × 3 1 , and so 2 0 1 5 2 = 5 2 × 1 3 2 × 3 1 2 . Now as we want the product of the consecutive integers to have at least two factors of 3 1 , we can either have two different integers in the sequence that are divisible by 3 1 or one that is divisible by 3 1 2 . To have two divisible by 3 1 means that there would be at least 3 2 integers in the sequence, so we'll try instead to find a shorter sequence which includes one integer divisible by 3 1 2 = 9 6 1 .
The four-digit integers divisible by 9 6 1 are 1 9 2 2 , 2 8 8 3 , 3 8 4 4 , 4 8 0 5 , 5 7 6 6 , 6 7 2 7 , 7 6 8 , 8 6 4 9 and 9 6 1 0 . Now we also require that the product have at least two factors of 1 3 , so we can have two integers each divisible by 1 3 or one divisible by 1 3 2 = 1 6 9 . In the former case we would then require a sequence of at least 1 4 integers, so let us first see if we can find an integer, divisible by 1 6 9 , with an absolute difference from one of the above list of multiples of 9 6 1 of less than 1 4 . Calculating these multiples modulo 1 6 9 , we find that the least absolute difference is 1 0 , as 2 8 8 3 ≡ 1 0 ( m o d 1 6 9 ) . This gives us the sequence 2 8 7 3 through 2 8 8 3 , the product of which also has 3 factors of 5 , (two from 2 8 7 5 and one from 2 8 8 0 ). Thus the smallest value of n is 2 8 7 3 − 2 7 7 3 + 1 = 1 1 .