I feel like I must be missing something obvious, but I can't figure it out. I have the speed of an electron, and to calculate its frequency i used p = h/λ, then subbed in p =mv and λ= v/f. Giving me the equation f = mv2/h. However, I also could use E = 1/2 mv2 and E = hf to give me the equation f = mv2/2h. Where is this factor of two coming from??