3......4,3179 are co-primes.....therefore 3179^(2x) will give remainder 1 with 4...as 2=4(1-1/2) where 2 in the bracket represents the only prime factor of 4.
so....3179^4240 will give rem 1 with 4.....thus we only have to find the rem of 3179 with 4 which is 3
@The_Loser|x-a| + |x-b| + |x-c| has minimum value at x = b ( median value) so our ques |x-1| + |2x-1| + |3x-1| .........|119x-1| rewriting as |x-1| + |x - 1/2| + |x- 1/2| + |x - 1/3| + |x - 1/3| + |x - 1/3| + ......| x - 1/119| total terms = 119*120/2 = 7140 middle term = 3571 / 3570 so, median term will be n(n+1)/2 = 3570 n = 84 so it will be min at x = 1/84 |1/84 -1| + | 2/84-1| + ......| 84/84-1| + |85/84 - 1| + .......| 119/84 -1| 83/84 + 82/84 + ....0 + 1/84 + 2/84 ......35/84 =49 Courtesy :- PG quant thread
14 people need to be split into 7 pairs. This can be done in 14C2*12C2*10C2*....2C2/7! ways Here we divide by 7! to weed out the repetitions in the pairs