The signs are not good here. You are likely looking at a failed motherboard. Get repair estimates.
If you do see the BIOS or HP logo, my answer changes.
I have a HP pavilion 17-e019dx and every time I powered it on it keep on rebooting by its set self and all I see is a black screen can anyone help me.