You got it all wrong:
Acetic acid:
C=0,1 M
V=0,05 L
n= 0,1*0,05 = 0,005 moles
dilluting to 0,1 L
C[CH3COOH] = 0,005/0,1 = 0,05 M
Sodium acetate:
m = 0,5 g
M[CH3COONa] = 82 g/mole
n= 0,5/82 = 0,0061 moles
C[CH3COONa] = 0,0061/0,1 = 0,062
pH=pKa + log([CH3COONa]/[CH3COOH]) = - log (1,75*10^-5) + log (0,062/0,050) = 4,757 + 0,093 = 4,85