idea
- uses the inclusion-exclusion approach
- count of (a,b) such that amodd=0 and bmodd=0
== count of (a,b) such that gcd(a,b)modd=0
dp[d]
= count of pairs with GCD == d, to calculate dp[d]
:
- first count the number of pairs having a common divisor == d
- then subtract all `dp[d * k] (k > 1)
implementation