A teacher wrote a number on the board and asked the students to tell about the divisors of the number one by one.
The teacher then said that exactly two consecutive students were incorrect.
Which two students were incorrect?
If the m th and ( m + 1 ) th students spoke wrongly, then enter m .
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.
To clarify, it doesn’t have to be a power of 2 specifically, merely the highest power of a prime amongst the numbers listed. However, the powers of odd primes are also odd, so the numbers adjacent to them are always divisible by 2. So, the only base you need to check is 2.
If the number be 31!
According to the instructions you should say the number is 16, not 15. Your work is wrong anyways.
Log in to reply
@Steven Gottlieb You are wrong,the instruction says enter m
m=15 because the 15th student said, "The number is divisible by 16."
Is my work any more wrong than the other solutions offered? They all seem to use similar reasoning.
@Steven Gottlieb No he's correct. The mth student is the 15th student who will say "The number is divisible by 16". The correct answer is m = 15 as the question only asks us to provide the value for m. "Your work is wrong anyways" Can you elaborate on this please??
@Jeremy Galvagni ,sir would you care to just explain me the essence of this question?I really didn't get the idea behind this :"The teacher then said that exactly two consecutive students were incorrect."
Log in to reply
The number itself must be huge to be divisible by almost every number up to 31. If every student was correct the number would be 72201776446800 (or a multiple of this ∗ ). For two students to be wrong we have to remove some factors. It turns out that removing a 2 and a 17 means the number is no longer divisible by 16 or 17 but remains divisible by all the others.
∗ this multiple cannot contain 2 or 17 as factors.
When, A teacher wrote a number on the board and asked the students to tell about the divisors of the number one by one. When 31 is a divisible of that number why hasnt another student say 62, cause even 62 is a divisible, and did she stop the students intentionally at 30th student or were there only 30 students to begin with, i got stuck when i understood that the number teacher gave a number thats divisible with all the numbers from 2 to 31 (except the 2 numbers)
Log in to reply
The entire problem could have just been written as:
If a number is divisible by all numbers from 1 to 31 except for two consecutive numbers, what are these numbers?
The narrative of teachers and students and statements were just to make the problem more accessible, even if you don't find it realistic.
This was a nice problem.
How do you know that the number is divisible by 13? The teacher's statement would still be correct if the number were divisible by 12 and 14.
Log in to reply
Only two consecutive numbers are not factors. It is impossible to have 26 as a factor but not 13.
Log in to reply
Of course if 13 is not a factor then neither is 26. But the teacher gave very little information about non-consecutive answers, just that there were only one group of consecutive answers that were both wrong.
Log in to reply
@Malcolm Rich – I don't think that interpretation of the wording is intended.
I read it as: There are exactly two incorrect students, and they are consecutive. "Two" refers to students.
You seem to interpret as: There could be any number of incorrect students, but only two that are consecutive. "Two" refers to consecutive.
Log in to reply
@Jeremy Galvagni – Precisely. I found the phrase a bit ambiguous and tried to apply it fairly loosely. Of course there are several solutions in the latter case
@Jeremy Galvagni – I initially tried a more loose interpretation as well, until I realized I was getting too many solutions...
A rephrasing like your interpretation would be a major improvement to the problem, removing much of the discussion in reply to the various solutions.
If 16 is not a factor, then at least one of 2 and 8 also cannot be a factor, right? If both 2 and 8 are correct doesn't it mean that 16 is correct as well?
Log in to reply
No. 16 is not a factor of 40, but both 2 and 8 are.
Log in to reply
A little more clarification would do : )
Log in to reply
@Akshay Krishna – The reason divisibility by 2 and 8 doesn’t imply divisibility by 16 is that 2 and 8 share a common factor. Specifically, 2 is a factor of 8, so any number with a factor of 8 must be divisible by 2, but not necessarily by 16. A more general rule is that if both a and b divide a number, that number is divisible by LCM(a,b). For numbers with no common factor, known as ‘coprime’, this means the number is divisible by their product. In a case like this, where a divides b, all this rule tells us is that b is a factor.
Vaibhav’s question involves the same idea, but backwards. 16 not being a factor means nothing for 2 and 8, since their LCM is just 8.
I had reasoned that the numbers were 16 and 17, but had overlooked that the students numbers were one less than the number that they said.
I was surprised that when I entered 16, it said that 16 was wrong.
So then I reasoned, if 16 and 17 are the wrong choices, perhaps they intended a different meaning for consecutive pair of students spoke wrongly.
I then thought that perhaps they wanted the numbers 15 and 16 because 15 = 3
5 and 16 is 2
2
2
2.
Then when it told me that 15 was correct, I at first felt my re-analysis was correct.
Then I was surprised again when I looked up the "discuss solutions" to find that my original choice of 16 and 17 were the correct solutions. Then I realized it was because the student's number were one less than the number ey said.
Log in to reply
I also made the error of confusing the number with the student number (need to read more carefully in the future)
Log in to reply
Add me to to growing list that came to 16,17 and entered in 16 as the answer to m. Ugh!
I searched about 20 minutes where my fault was 😂
For a different take on the question, if the teacher means that "only one pair of consecutive students" were wrong, there are a number of solutions. I think the smallest numbers which could be non-divisors are 7 and 8 but suspect that every pair larger than this could also be potential solutions.
each wrong divisor must have the highest number of some prime factor out of all of the numbers in the sequence from 2-31.
Neither of the two numbers can be expressible as
n
1
×
n
2
as that would imply you can't divide by one of either
n
1
or
n
2
, which is a problem because there are no natural numbers except 1 and 2 such that
n
1
×
n
2
=
n
1
+
1
and we know it's divisible by 2 since non-consecutive students said higher powers of two.
So the two numbers must be primes raised to a power (which would be the highest power you see that prime raised to in the sequence)
The primes in the sequence are: 2,3,5,7,11,13,17,19,23,29,31
The highest powers of primes in sequence are:
1
6
(
2
4
)
,
2
7
(
3
3
)
,
2
5
(
5
2
)
Now we just need to find two of these numbers that are consecutive, which aren't 2,3,5,7,11,or 13, as their value multiplied by an integer greater than or equal to two comes up in the sequence at some point. Out of the numbers above, only 16, and 17 are consecutive, and are in line with the conditions described. Thus they must be the only numbers in which aren't perfect divisors of this large number. keeping in mind the
n
t
h
student says the
(
n
+
1
)
t
h
number. The
1
5
t
h
student says 16 so the answer is
15
"Neither can be expressible as n 1 × n 2 . This is not quite correct, unless you specify limitations on n 1 and n 2 . In fact, the answer may be written as 1 6 = 2 × 8 and 1 7 = 1 × 1 7 , for instance.
Recall any number can be factored as primes to some exponents, and that for integer 1 to not be divisible by integer 2, integer 2 must contain a higher exponent on a prime factor, than the exponent on that same prime factor for integer 1. We are given that this large number is divisible by all numbers except for two consecutive numbers
N
1
and
N
2
. each of these numbers must have factors
n
1
and
n
2
such that their respective prime factorization through multiplication are able to be simplified by
p
a
×
p
b
=
p
a
+
b
and then it must be the case that
p
a
+
b
is contained in the sequence of numbers listed by the students while
p
a
+
b
+
1
is not, since if the large number is not divisible by
p
a
+
b
then it clearly won't be divisible by
p
a
+
b
+
1
where
p
is some prime number
if
p
a
+
b
+
1
was in the sequence it wouldn't be consecutive to
p
a
+
b
so having that would give a contradiction to the statement that the numbers are consecutive.The point I should've made clear was that if you let
N
=
n
1
×
n
2
then for any particular value of N to be the answer, it'd have to be that case that
you could
set a value of
n
equal to the highest exponent of a prime that comes up in the sequence and let the other value of
n
be equal to one., and that the numbers where you couldn't do that were not worth considering, as they have less or the same value of an exponent on some of their prime factors as some other
non-consecutive
number in the sequence, and thus you can cross out any number in which
you cannot
express as just some prime raised to the highest exponent possible while keeping it in the sequence.
I somehow noticed that 2 3 was the smallest power of 2 in the prime factorization of N and thus 2 4 = 1 6 wasn't needed. Also, if we get rid of the 1 7 : since it's prime it won't affect the numbers before it and since 1 7 × 2 > 3 1 it won't affect the numbers after it.
Therefore it works for ( 1 6 , 1 7 ) . Although I think I was lucky...
PS : It would've been waay cooler if the answer was m + ( m + 1 ) , which actually equals 31 !
How do we know the answer isn't 17 and 18 for say then?
Log in to reply
Well, 1 8 = 9 × 2 but both of them are needed. And 1 8 = 6 × 3 but both of them are needed.
Log in to reply
18 being 6 × 3 doesn't matter, since you can have 42 which is divisible by both 6 and 3, but not 18...
Log in to reply
@C . – Oh, right ! If I remember correctly, I think this was the "trap" of the problem ^^. It's quite ironic to avoid it for the first time but getting caught on the second ahah. I guess the lesson here is to never underestimate a problem even if you've solved it previously.
Arousse, is correct. That means the answer should be 16, Not 15 as listed.
Log in to reply
Did you miss the ending instruction,
If the m-th and (m+1)-th students spoke wrongly, then enter m
, or did you miss that the m-th student's statement is about divisibility by (m+1) ? :-B
I thought it was 16, too, since 17 is prime and 16 is the only one with 4 twos. It says the correct answer is 15, meaning (15 and 16 are not divisors), but that is wrong because if 15 is not a divisor, then 30 can't be either).
Log in to reply
I just figured out my mistake - the first student is 2, so the 15th student said 16 and 16th student said 17. So, I had the right numbers, but the wrong students.
Suppose that the statement "The number is divisible by p a q b " is wrong, with p , q prime, and a , b ≥ 1 .
Then the statements "The number is divisible by p a " and "The number is divisible by q b " are also wrong, making for a total of three incorrect students. But there are only two; therefore both incorrect divisors must be a power of a prime.
Also, they should be the greatest power of that prime less than or equal to 31.
This leaves us with the candidates 2 4 = 1 6 3 3 = 2 7 5 2 = 2 5 and the simple primes 7 , 1 1 , 1 3 , 1 7 , 1 9 , 2 3 , 2 9 . It is easy to see that of these numbers, only 1 6 , 1 7 are consecutive. Therefore student 15 (who said that 16 was a divisor) and students 1 6 (who claimed 17 as a divisor) are incorrect.
a) The number must be divisible by every integer from 1 to 15, otherwise there would be at least two non-consecutive incorrect students. Proof: If the number is not divisible by n, then neither is it divisible by 2n. (For example, if the number is not divisible by 11 then neither is it divisible by 22.)
b) It is possible that the 15th and 16th students were the incorrect ones and the number is not divisible by 16 or 17, but divisible by all the other integers from 2 to 31. Proof: Any number which contains at least the prime factors 2, 2, 2, 3, 3, 3, 5, 5, 7, 11, 13, 19... and all other prime numbers up to 31 would satisfy this condition. It wouldn't matter if there were additional larger prime factors or additional 3s, 5s, 7s etc. The key things are that there must be three factors of 2 (and no more) and no factor of 17.
c) Given a), the students who quoted an even number between 18 and 30 must have been correct, and therefore no other two consecutive students could be incorrect. Proof: Every even number between 18 and 30 can be expressed as a x b where a is a power of 2 (2, 4 or 8) and b is odd, and where a and b are both between 2 and 15. Knowing that the number is divisible by a and b means that it is also divisible by a x b. (For example, we know the number is divisible by 4 and 7, so it is also divisible by 28.)
40 is divisible by 8 and 2 but not by 16
For simplicity, let's call the large target number N .
The first key insight is that if two numbers are non-consecutive, then one of them must be a factor of N . Let's choose two non-consecutive numbers from the list a and b , such that b is divisible by a . Because of this, if b is a factor, then a must also be a factor. However, if b is not a factor, a must still be a factor because they are non-consecutive. Therefore, we have shown that for any two non-consecutive numbers a and b in the list, such that b is divisible by a , a is a factor of N .
We can use this to identify certain numbers which must be a factor. Any number a in the list less than 16 must be a factor, because b = a * 2 also appears in the list. Therefore, the two consecutive non-factors must be {16,17}, {17,18}, ...., or {30,31}.
The second key insight is that any number which is a multiple of two other coprime factors of N must also be a factor of N . Let's concentrate on even numbers in the range [16,30], since we know that at least one of the two consecutive numbers must be even.
We can eliminate numbers between 18 and 30 based on the below. Note that we have already proven than anything between 2 and 15 has to be a factor of N .
18 = 2 * 9, 20 = 4 * 5, 22 = 2 * 11, 24 = 3 * 8, 26 = 2 * 13, 28 = 4 * 7, 30 = 5 * 6
The only number missing from this list is 16. It is the only even number between 2 and 31 which cannot be proven to be a factor of N . Since there must be at least one even number which is not a factor of N , it must be 16.
The one remaining step is to determine whether {15,16} or {16,17} is the consecutive pair of non-factors. We have already proven that 15 is a factor of N , so the only candidate is {16,17}. Note that because 17 is prime, and no multiple of 17 is in the list, we likewise cannot prove that 17 is a factor of N . {16,17} is the only possible candidate. The answer, therefore, is that the 15th and 16th students spoke wrongly.
Let N be our number. Since the two non-divisors are consecutive, one of them must be even. If an even number with an odd factor x = c 2 n does not divide N , with c > 1 odd, then either c ∤ N or 2 n ∤ N . That would make at least two non-consecutive non-divisors ( { c , x } or { 2 n , x } ). So one of the non-divisors must be a power of 2 . And, obviously, if 2 n ∤ N , then 2 n + 1 ∤ N . Thus 2 n + 1 must be outside the range of numbers under consideration, i.e. 2 n = 1 6 .
The other non-divisor must be either 1 5 or 1 7 . 1 5 is a composite number, so if 1 5 ∤ N , one of 3 , 5 must also not divide N . Thus the other non-divisor must be 1 7 . And our 1 5 th student mentioned 1 6 .
possible numbers are 4,8,16,3,9,27,25 and all prime. but it must greater than 15 since 15*2 = 30 smaller than 31. so numbers left is 16,27,25,17,19. since they need consecutive, only 16 and 17 left. so answer is 1 5 .
First we list the possible numbers :
2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
And easily we can know that the numbers less or equal than 15 are impossible because they have a multiple
For example if 9 is incorrect then 18 will be incorrect either cause 18 = 2 * 9
So the possible numbers become :
16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
which means the rest of the numbers are correct , and we can use another strategy
We begin with 2 :
since 2 to 15 are all correct and we use 2 and 9 as an example :
2 * n is the number
9 * m is the number.
Cause 9 isn't the multiple of 2 so 2 is in the m . Thus 2 * 9 = 18 is also correct
And so does 2 * 11, 2 * 13, 2 * 15, 3 * 7 ....
After we done this, the possible numbers turns out to be :
16,17,19,23,25,27,29,31
Only 16 and 17 are consecutive so the answer is the 15th student
If the number is not divisible by
n
, then it is also not divisible by
k
n
. This means
n
∈
[
1
6
,
3
1
]
.
If the number is not divisible by
∏
p
i
k
, where
p
i
are distinct primes, then it cannot be divisible by all
p
i
k
. This means
n
=
p
k
. The only pair of consecutive integers that satisfies these constraints on
n
is (
1
6
,
1
7
)
, so the answer is
1
5
.
Observation 1: If k and k+1 doesn't divide the number then, 2k and 2(k+1) $\ge 32 so, k is 16 or more. So to get non-divisors of the number, we have to consider only consecutive numbers in 16,17,...,31
Observation 2: If at least one of k and k+1 has more than one prime divisor then it can be written as pq, where gcd(p,q)=1. But as p,q both divides the number,(since, teacher said only two of the student say false) pq divides the number, which is not the case.So both of k and k+1 has single prime divisor. Now, the (1) & (2) are only satisfied by 16 and 17. So, atmost 15th and 16th student is wrong
If a student says a number which is correct, all the prime factors of their number must be present in the list of prime factors of the original number.
For a student's number to be possibly incorrect, their number must either be prime, contain a prime factor not included in the original number, or have more instances of a specific prime factor than the original number. In any other case, the other students' numbers would require the original number to contain the prime factors of the student in question's number.
By looking through the prime factors of numbers 2 to 3 1 , we can see that the only consecutive pair of numbers which can possibly fit any of these conditions is 1 6 and 1 7 : 1 6 contains more 2 prime factors than any other number below 3 2 (the final number only has 3), and 1 7 is prime. Therefore the answer is 1 5 .
It's worth noting that the second condition could never be true, since a prime number cannot be followed immediately by a multiple of itself.
I found 2740946218059310 is evenly divisible by all whole numbers from 2 to 31 with the exception of 29 and 30. You can quickly check this in a spreadsheet. Why is this true given all of the Number Theory examples?
Obviously, the first 14 students spoke correctly: If the first statement is incorrect, then the third statement is correct (as if a number is not divisible by 2, it would not be divisible by 4) and so on. Hence 1 5 ≥ m ≥ 3 0 ( 1 ) . There must be an even number smaller than 32 that is not divisible by the given number. Seeing that 16 is the only number that is not guaranteed to follow this condition (as 1 8 = 2 × 9 ; 2 0 = 4 × 5 and so on. Hence, m ∈ { 1 4 ; 1 5 } . ( 2 ) From ( 1 ) and ( 2 ) , m = 1 5 .
Factors 2-15 rule out as if one of these were not a factor, their double wouldn't be either, and neither of these are next to their doubles. If two relative primes are factors, then the product of these relative primes is a factor too. So if the numbers 2-15 are all factors, the following products are factors, too:
18=2x9, 20=4x5, 21=3x7, 22=2x11, 24=3x8, 26=2x13, 28=4x7, 30=3x10
We have 16,17,19,23,25,27,29,31 remaining. Only 16 and 17 are consecutive numbers. 16 is said by the 15th student.
Its better to search for primes . But no prime are consecutive except
2
,
3
but we cant say that they dont divide(because the number is divisible by
6
)
One of the approach is to search for maximum power of a prime number say
x
=
p
k
. Because
x
can only divide multiple of
p
n
type number. So as
x
is greatest type of that number,it necessary no need to divide. But we have to choose
x
such that any of
x
+
1
,
x
−
1
is prime
Here
2
4
=
1
6
,
3
3
=
2
7
,
5
2
=
2
5
are the maximum power of
2
,
3
,
5
less than
3
1
First observe
2
5
,neither of the number
2
5
−
1
,
2
5
+
1
is prime.
Also true for
2
7
.
Observe
1
6
and
1
6
+
1
=
1
7
as it is prime, our desired number is
1
6
,
1
7
They are said by
1
5
t
h
,
1
6
t
h
student.
So the answer is
1
5
(Note : they are said by 1 5 t h , 1 6 t h student not 1 6 t h , 1 7 t h )
The smallest number the teacher could have written was 707,860,553,400.
The smallest number the teacher could have written was 2,123,581,660,200. The number 707,860,553,400 is not divisible by 27. Kindly re-edit the value 707,860,553,400 to 2,123,581,660,200
First of all, we know that it can't be a number below 15. The first fourteen students all said numbers that another (non-consecutive) student later said a multiple of (e.g. the 14th student said 15, but the 29th student said 30), so if said student was incorrect, so was another non-consecutive student.
This being the case, we know that the number the teacher wrote on the board has to be a multiple of every number from 2 to 15. The minimum common multiple of these numbers is 2 3 ∗ 3 2 ∗ 5 ∗ 7 ∗ 1 1 ∗ 1 3 = 3 6 0 3 6 0 , so any number between 16 and 31 that is a divisor of that number must be a divisor of the number the teacher wrote. Namely, 18, 20, 21, 22, 24, 26, 28, and 30 are definitely divisors.
Therefore, we can eliminate the possibility that m is in integer interval [16..30], as all of those values of m are such that one of the divisors we listed is implied as incorrect. That leaves us with m=15.
Problem Loading...
Note Loading...
Set Loading...
Looking for two numbers in a row with unusual factors. It makes sense that one should be a prime over 15 since otherwise, it's double would also be incorrect. So one of the numbers could be one of 1 7 , 1 9 , 2 3 , 2 9 , 3 1
Now the neighboring number is even and needs an unusual factorization. It cannot be a number with more than one prime factor, because these numbers are correct. (Example 26 cannot be wrong because 2 and 13 are correct.) That leaves a number with all 2's. The highest power of 2 in the list is 2 4 = 1 6 . This is consecutive with 1 7 so the wrong numbers are 1 6 , 1 7 and m = 1 5