#include #include #include #include #include #include #include using namespace std; #define int long long #define endl "\n" const long long INF = (long long)1e18; const long long MOD = 1'000'000'007; string yn(bool f){return f?"Yes":"No";} string YN(bool f){return f?"YES":"NO";} signed main(){ cin.tie(nullptr); ios::sync_with_stdio(false); cout< a; vector> dp; int ans = 0; cin>>N; a.resize(N); dp.resize(N); for(int i = 0; i < N; i++){ cin>>a[i]; for(int k = 0; k < i; k++){ for(pair p : dp[k]){ dp[i][__gcd(p.first, a[i])] += p.second; } } dp[i][a[i]]++; ans += dp[i][1]; } cout<