Help needed , topic number theory

Правка en1, от threshold, 2021-04-17 13:52:03

Interesting and Standard question

You are given N integers (not necessarily distinct) => A1, A2, A3, ..., AN. There are 2N possible subsets (including the empty subset). The GCD of a subset is defined as the greatest common divisor of all the integers in that subset. You need to find the product of the GCDs of all the 2N possible subsets you can construct from A. Since the answer can be large, you need to output the answer modulo 1000000007. Do you think you can solve this question?

Note: The greatest common divisor of an empty subset is 1.

Question link

My submission link

Why it's giving wrong answer , please anyone can help?

Теги #number theory, #discrete math, #fermat, #math

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский threshold 2021-04-17 13:52:03 781 Initial revision (published)