The number of ways of selecting two numbers a and b,a∈{2,4,6...,100} and b∈{1,3,5...,99} such that 2 is the remainder when a+b is divided by 23 is [2023]
(2)
a∈{2,4,6,…,100}, b∈{1,3,5,…,99}
a+b=23λ+2
λ=0,1,2,…,22 but λ can't be even.
If λ=1, (a,b)→12 pairs; λ=3,(a,b)→35 pairs;
λ=5, (a,b)→42 pairs; λ=7,(a,b)→19 pairs;
λ=9,(a,b)→0 pairs.
∴ Total number of ways=12+35+42+19=108