I am trying to copy this formula for a homework problem which is to regenerate a game version of the St. Petersberg paradox. I have a feeling I am messing up at this formula but