求问,洛谷或ACWing是否有这样的一道题:
求 gcd(qa−1,qb−1) mod p\gcd(q^a-1,q^b-1)\bmod pgcd(qa−1,qb−1)modp。值域均为 [1,109][1,10^9][1,109]。
若有,求题号。谢谢