Question
Question: Number of ways in which two distinct natural numbers can be selected out of first 100 natural number...
Number of ways in which two distinct natural numbers can be selected out of first 100 natural numbers so that sum of their cubes is multiple of 8 is N, then [200N] is equal to (where [.] denotes greatest integer function)

7
Solution
Let the two distinct natural numbers be a and b, where 1≤a<b≤100. We are given that the sum of their cubes, a3+b3, is a multiple of 8. This can be written as a3+b3≡0(mod8).
First, let's analyze the cube of a natural number modulo 8:
-
If x is an even number: Let x=2k for some integer k. Then x3=(2k)3=8k3. So, x3≡0(mod8) for any even number x.
-
If x is an odd number: We can use the property that for any odd integer x, x3≡x(mod8). This can be shown by factoring x3−x=x(x2−1)=x(x−1)(x+1). Since x is odd, x−1 and x+1 are consecutive even integers. One of them must be a multiple of 4, and the other is a multiple of 2. Thus, their product (x−1)(x+1) is a multiple of 2×4=8. Therefore, x(x−1)(x+1) is a multiple of 8, which means x3−x≡0(mod8), or x3≡x(mod8). Let's verify this for possible odd residues modulo 8:
- If x≡1(mod8), x3≡13≡1(mod8).
- If x≡3(mod8), x3≡33=27≡3(mod8).
- If x≡5(mod8), x3≡53=125≡5(mod8).
- If x≡7(mod8), x3≡73=343≡7(mod8).
Now, let's consider the condition a3+b3≡0(mod8) based on the parity of a and b:
Case 1: Both a and b are even. If a is even, a3≡0(mod8). If b is even, b3≡0(mod8). Then a3+b3≡0+0≡0(mod8). This condition is always satisfied if both a and b are even. There are 50 even numbers between 1 and 100 (2, 4, ..., 100). The number of ways to select two distinct even numbers is (250). Number of ways = 250×49=25×49=1225.
Case 2: One number is even and the other is odd. Let a be even and b be odd. Then a3≡0(mod8) and b3≡b(mod8). So we need a3+b3≡0+b≡b(mod8). For a3+b3≡0(mod8), we would need b≡0(mod8). However, b is an odd number, so b cannot be a multiple of 8. Therefore, b≡0(mod8). Thus, this case is not possible.
Case 3: Both a and b are odd. If a is odd, a3≡a(mod8). If b is odd, b3≡b(mod8). So we need a3+b3≡a+b≡0(mod8). This means that the sum of the two odd numbers a and b must be a multiple of 8. There are 50 odd numbers between 1 and 100 (1, 3, ..., 99). Let's classify these odd numbers based on their remainder modulo 8:
- N1: Numbers x≡1(mod8). These are 1,9,…,97. Count: 1+⌊897−1⌋=1+12=13 numbers.
- N3: Numbers x≡3(mod8). These are 3,11,…,99. Count: 1+⌊899−3⌋=1+12=13 numbers.
- N5: Numbers x≡5(mod8). These are 5,13,…,93. Count: 1+⌊893−5⌋=1+11=12 numbers.
- N7: Numbers x≡7(mod8). These are 7,15,…,95. Count: 1+⌊895−7⌋=1+11=12 numbers. Total odd numbers: 13+13+12+12=50.
We need a+b≡0(mod8). Let a(mod8)=ra and b(mod8)=rb. Possible pairs (ra,rb) such that ra+rb≡0(mod8) and ra,rb∈{1,3,5,7}:
- ra=1,rb=7: 1+7=8≡0(mod8). Number of ways to choose a∈N1 and b∈N7 is 13×12=156. Since a∈N1 and b∈N7, a and b are guaranteed to be distinct.
- ra=3,rb=5: 3+5=8≡0(mod8). Number of ways to choose a∈N3 and b∈N5 is 13×12=156. Since a∈N3 and b∈N5, a and b are guaranteed to be distinct. No other combinations of two distinct odd numbers will sum to a multiple of 8 (e.g., 1+1=2, 3+3=6, 5+5=10≡2, 7+7=14≡6).
Total number of ways for Case 3 = 156+156=312.
Total number of ways N is the sum of ways from Case 1 and Case 3. N=1225+312=1537.
Finally, we need to calculate [200N]. [2001537]=[7.685]. The greatest integer less than or equal to 7.685 is 7.
The final answer is 7.