Difference between revisions of "2023 IOQM/Problem 1"
m (→Solution 1(Spacing of squares)) |
(→Solution 1(Spacing of squares)) |
||
Line 12: | Line 12: | ||
If for any [[integer]] <math>n</math>, if <math>\sqrt{n}</math> is an [[integer]] this means <math>n</math> is a [[perfect square]]. Now the problem reduces to finding the difference between maximum and minimum no. of [[perfect squares]] between <math>4n+1, 4n+2 .... 4n+1000.</math> There are 1000 numbers here. | If for any [[integer]] <math>n</math>, if <math>\sqrt{n}</math> is an [[integer]] this means <math>n</math> is a [[perfect square]]. Now the problem reduces to finding the difference between maximum and minimum no. of [[perfect squares]] between <math>4n+1, 4n+2 .... 4n+1000.</math> There are 1000 numbers here. | ||
− | The idea is that for the same range of numbers, the no. of [[perfect squares]] becomes less when the numbers become larger | + | The idea is that for the same range of numbers, the no. of [[perfect squares]] becomes less when the numbers become larger. |
− | + | '''For example, there are 3 [[perfect squares]] between 1 and 10 but none between 50 and 60.''' | |
− | Minimum value of <math>n</math> = 1 | + | ⇒ The maximum value of <math>M_n</math> occurs when <math>n</math> is minimum and the minimum value of <math>M_n</math> occurs when <math>n</math> is maximum. |
+ | |||
+ | Minimum value of <math>n</math> = 1 So, the numbers are 5,6...1004. there are 29 [[perfect squares]] here, so <math>a</math> = <math>max.</math>(<math>M_n</math>)= <math>29</math> | ||
+ | |||
+ | Maximum value of <math>n</math> = 1000 So, the numbers are 4001,4002...5000. there are 7 [[perfect squares]] here, so <math>b</math> = <math>min.</math>(<math>M_n</math>)= <math>7</math> | ||
+ | |||
+ | ⇒ <math>a-b= 29-7 = \boxed{22}</math> | ||
+ | |||
+ | ~SANSGANKRSNGUPTA |
Revision as of 05:58, 27 September 2023
Problem
Let be a positive integer such that . Let be the number of integers in the set
. Let , and .
Find .
Solution 1(Spacing of squares)
If for any integer , if is an integer this means is a perfect square. Now the problem reduces to finding the difference between maximum and minimum no. of perfect squares between There are 1000 numbers here.
The idea is that for the same range of numbers, the no. of perfect squares becomes less when the numbers become larger.
For example, there are 3 perfect squares between 1 and 10 but none between 50 and 60.
⇒ The maximum value of occurs when is minimum and the minimum value of occurs when is maximum.
Minimum value of = 1 So, the numbers are 5,6...1004. there are 29 perfect squares here, so = ()=
Maximum value of = 1000 So, the numbers are 4001,4002...5000. there are 7 perfect squares here, so = ()=
⇒
~SANSGANKRSNGUPTA