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 power = [] base = pow(M, K, MOD) for i in range(M+1): power.append((base-pow(i, K, MOD))%MOD) ans = 0 for c in cnt: ans += power[M-c] ans %= MOD ans *= pow(pow(M, MOD-2, MOD), K, MOD) ans %= MOD print(ans)