import sys input = sys.stdin.readline MOD = 998244353 N, M, K = map(int, input().split()) A = list(map(int, input().split())) cnt = [0 for _ in range(N)] for a in A: for j in range(a, N+1, a): cnt[j-1] += 1 ans = 0 base = pow(M, K, MOD) for c in cnt: ans += base - pow(M-c, K, MOD) ans %= MOD ans *= pow(pow(M, MOD-2, MOD), K, MOD) ans %= MOD print(ans)