MOD = 998244353 N, M, K = map(int, input().split()) A = list(map(int, input().split())) X = [0] * (N + 1) for a in A: for i in range(1, N // a + 1): X[i * a] += 1 all = pow(M, K, MOD) ans = 0 for x in X: ans += all - pow(M - x, K, MOD) ans %= MOD ans *= pow(all, -1, MOD) ans %= MOD print(ans)