from collections import defaultdict 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) dic = defaultdict(int) for x in X: dic[x] += 1 ans = all * (N + 1) ans %= MOD for k, v in dic.items(): ans -= v * pow(M - k, K, MOD) ans %= MOD ans *= pow(all, -1, MOD) ans %= MOD print(ans)