from collections import defaultdict MOD=998244353 N,M,K=list(map(int,input().split())) A=list(map(int,input().split())) card=[0]*(N+1) for i in A: if i<=N: card[i]+=1 cnt=[0]*(N+1) for i in range(1,N+1): if card[i]==0: continue for j in range(i,N+1,i): cnt[j]+=card[i] ans=defaultdict(int) for i in range(1,N+1): ans[M-cnt[i]]+=1 ANS=(N*pow(M,K,MOD))%MOD for i in range(1,M+1): ANS=(ANS-ans[i]*pow(i,K,MOD))%MOD #print(ANS) #print(ans) ANS=(ANS*pow(pow(M,K,MOD),MOD-2,MOD))%MOD print(ANS)