TheHelmholtz equation describes wave propagation in the frequency domain and,as such, can be used for seismic imaging and fullwaveform inversion. We present two novel preconditioners for the efficientsolution of the Helmholtz equation in three dimensions. Both methodsfollow the general structure of constructing an approximate LDLt factorizationby eliminating the unknowns layer by layer starting from anabsorbing layer or boundary condition. In the first approach, werepresent the Schur complement matrices of the factorization in thehierarchical matrix framework. In the second approach, applying each Schurcomplement matrix is equivalent to solving a quasi-2D problem withthe multifrontal method. These preconditioners have linear application cost, andthe preconditioned iterative solvers converge in a number of iterationsthat is essentially independent of the number of unknowns orthe frequency. Numerical results on realistic 3D seismic models toconfirm the efficiency of these methods.