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)] D = [0 for _ in range(10**6+1)] for a in A: D[a] += 1 for i in range(10**6+1): if D[i]==0: continue for j in range(i, N+1, i): cnt[j-1] += D[i] 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)