Calculate a coeffs using fft