Hmmm... have you tried unpluging everything (including the battery) and just plugging in the power cord. Try hooking it up to a different outlet (one directly to the wall, no power strips/protectors) see if it still does it. If it doesn't add the battery to the mix then just keep adding until you hear it again.
Edit: also keep any other electronics away from the laptop. Cellphones, wiring and other things could be causing undesired interference.
If nothing helped, i'd take it back to where you got it from.
You mentioned you just purchased this notebook. Have you contacted HP regarding this issue? I would recommend doing so and if you need assistance I work for HP so feel free to email me at firstname.lastname@example.org. Please include Attn: Veronica-Tom in the subject line and provide any product/contact information.