Letf(z)=∑k=0∞akzk,a0≠0be analytic in the unit disc. Any infinite complex vectorθ=(θ0,θ1,θ2,…)such that|θk|=1,k=0,1,2,…, induces a functionfθ(z)=∑k=0∞akθkzkwhich is still analytic in the unit disc.In this paper we study the problem of maximizing thep-means:∫02π|fθ(reiϕ)|pdϕover all possible vectorsθand for values ofrclose to0and for allp<2.It is proved that a maximizing function isf1(z)=−|a0|+∑k=1∞|ak|zkand thatrcould be taken to be any positive number which is smaller than the radius of the largest disc centered at the origin which can be inscribed in the zero sets off1. This problem is originated by a well known majorant problem for Fourier coefficients that was studied by Hardy and Littlewood.One consequence of our paper is that forp<2the extremal function for the Hardy-Littlewood problem should be−|a0|+∑k=1∞|ak|zk.We also give some applications to derive some sharp inequalities for the classes of Schlicht functions and of functions of positive real part.