Solveeit Logo

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 [N200]\left[\frac{N}{200}\right] is equal to (where [.] denotes greatest integer function)

Answer

7

Explanation

Solution

Let the two distinct natural numbers be aa and bb, where 1a<b1001 \le a < b \le 100. We are given that the sum of their cubes, a3+b3a^3 + b^3, is a multiple of 8. This can be written as a3+b30(mod8)a^3 + b^3 \equiv 0 \pmod{8}.

First, let's analyze the cube of a natural number modulo 8:

  1. If xx is an even number: Let x=2kx = 2k for some integer kk. Then x3=(2k)3=8k3x^3 = (2k)^3 = 8k^3. So, x30(mod8)x^3 \equiv 0 \pmod{8} for any even number xx.

  2. If xx is an odd number: We can use the property that for any odd integer xx, x3x(mod8)x^3 \equiv x \pmod{8}. This can be shown by factoring x3x=x(x21)=x(x1)(x+1)x^3 - x = x(x^2 - 1) = x(x-1)(x+1). Since xx is odd, x1x-1 and x+1x+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 (x1)(x+1)(x-1)(x+1) is a multiple of 2×4=82 \times 4 = 8. Therefore, x(x1)(x+1)x(x-1)(x+1) is a multiple of 8, which means x3x0(mod8)x^3 - x \equiv 0 \pmod{8}, or x3x(mod8)x^3 \equiv x \pmod{8}. Let's verify this for possible odd residues modulo 8:

    • If x1(mod8)x \equiv 1 \pmod{8}, x3131(mod8)x^3 \equiv 1^3 \equiv 1 \pmod{8}.
    • If x3(mod8)x \equiv 3 \pmod{8}, x333=273(mod8)x^3 \equiv 3^3 = 27 \equiv 3 \pmod{8}.
    • If x5(mod8)x \equiv 5 \pmod{8}, x353=1255(mod8)x^3 \equiv 5^3 = 125 \equiv 5 \pmod{8}.
    • If x7(mod8)x \equiv 7 \pmod{8}, x373=3437(mod8)x^3 \equiv 7^3 = 343 \equiv 7 \pmod{8}.

Now, let's consider the condition a3+b30(mod8)a^3 + b^3 \equiv 0 \pmod{8} based on the parity of aa and bb:

Case 1: Both aa and bb are even. If aa is even, a30(mod8)a^3 \equiv 0 \pmod{8}. If bb is even, b30(mod8)b^3 \equiv 0 \pmod{8}. Then a3+b30+00(mod8)a^3 + b^3 \equiv 0 + 0 \equiv 0 \pmod{8}. This condition is always satisfied if both aa and bb 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 (502)\binom{50}{2}. Number of ways = 50×492=25×49=1225\frac{50 \times 49}{2} = 25 \times 49 = 1225.

Case 2: One number is even and the other is odd. Let aa be even and bb be odd. Then a30(mod8)a^3 \equiv 0 \pmod{8} and b3b(mod8)b^3 \equiv b \pmod{8}. So we need a3+b30+bb(mod8)a^3 + b^3 \equiv 0 + b \equiv b \pmod{8}. For a3+b30(mod8)a^3 + b^3 \equiv 0 \pmod{8}, we would need b0(mod8)b \equiv 0 \pmod{8}. However, bb is an odd number, so bb cannot be a multiple of 8. Therefore, b≢0(mod8)b \not\equiv 0 \pmod{8}. Thus, this case is not possible.

Case 3: Both aa and bb are odd. If aa is odd, a3a(mod8)a^3 \equiv a \pmod{8}. If bb is odd, b3b(mod8)b^3 \equiv b \pmod{8}. So we need a3+b3a+b0(mod8)a^3 + b^3 \equiv a + b \equiv 0 \pmod{8}. This means that the sum of the two odd numbers aa and bb 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:

  • N1N_1: Numbers x1(mod8)x \equiv 1 \pmod{8}. These are 1,9,,971, 9, \dots, 97. Count: 1+9718=1+12=131 + \lfloor \frac{97-1}{8} \rfloor = 1 + 12 = 13 numbers.
  • N3N_3: Numbers x3(mod8)x \equiv 3 \pmod{8}. These are 3,11,,993, 11, \dots, 99. Count: 1+9938=1+12=131 + \lfloor \frac{99-3}{8} \rfloor = 1 + 12 = 13 numbers.
  • N5N_5: Numbers x5(mod8)x \equiv 5 \pmod{8}. These are 5,13,,935, 13, \dots, 93. Count: 1+9358=1+11=121 + \lfloor \frac{93-5}{8} \rfloor = 1 + 11 = 12 numbers.
  • N7N_7: Numbers x7(mod8)x \equiv 7 \pmod{8}. These are 7,15,,957, 15, \dots, 95. Count: 1+9578=1+11=121 + \lfloor \frac{95-7}{8} \rfloor = 1 + 11 = 12 numbers. Total odd numbers: 13+13+12+12=5013+13+12+12 = 50.

We need a+b0(mod8)a+b \equiv 0 \pmod{8}. Let a(mod8)=raa \pmod{8} = r_a and b(mod8)=rbb \pmod{8} = r_b. Possible pairs (ra,rb)(r_a, r_b) such that ra+rb0(mod8)r_a+r_b \equiv 0 \pmod{8} and ra,rb{1,3,5,7}r_a, r_b \in \{1, 3, 5, 7\}:

  1. ra=1,rb=7r_a = 1, r_b = 7: 1+7=80(mod8)1+7 = 8 \equiv 0 \pmod{8}. Number of ways to choose aN1a \in N_1 and bN7b \in N_7 is 13×12=15613 \times 12 = 156. Since aN1a \in N_1 and bN7b \in N_7, aa and bb are guaranteed to be distinct.
  2. ra=3,rb=5r_a = 3, r_b = 5: 3+5=80(mod8)3+5 = 8 \equiv 0 \pmod{8}. Number of ways to choose aN3a \in N_3 and bN5b \in N_5 is 13×12=15613 \times 12 = 156. Since aN3a \in N_3 and bN5b \in N_5, aa and bb are guaranteed to be distinct. No other combinations of two distinct odd numbers will sum to a multiple of 8 (e.g., 1+1=21+1=2, 3+3=63+3=6, 5+5=1025+5=10 \equiv 2, 7+7=1467+7=14 \equiv 6).

Total number of ways for Case 3 = 156+156=312156 + 156 = 312.

Total number of ways NN is the sum of ways from Case 1 and Case 3. N=1225+312=1537N = 1225 + 312 = 1537.

Finally, we need to calculate [N200]\left[\frac{N}{200}\right]. [1537200]=[7.685]\left[\frac{1537}{200}\right] = [7.685]. The greatest integer less than or equal to 7.685 is 7.

The final answer is 7\boxed{7}.