The binomial coefficient C(m,n) is defined as Given four natural numbers p, q, r, and s, compute the the result of dividing C(p,q) by C(r,s). 这是二次项系数,现在给出p,q,r,s,计算C(p,q)除以C(r,s)的结果 InputInput consists of a sequence of lines. Each line contains four non…
You are given an array aa consisting of nn integers. Your task is to say the number of such positive integers xx such that xx divides eachnumber from the array. In other words, you have to find the number of common divisors of all elements in the arr…
Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901). Input The only line contains the two natural numbers A and B, (0 <= A,B <= 50000000)separated by…