The period of a body under SHM is respected by T=paDbSc, where p is pressure, D is density and S is surface tension. The value of a, b and c are
−32,12,1
−1,−2,3
12,−32,−12
1,2,13
By substituting the dimensions of each quantity, we get
T=[ML−1T−2]a[L-3M]b[MT−2]c
By solving, we get
a=−32, b=12 and c=1