Here's a puzzle based on something I used to be confused about:
It is known that utility functions are equivalent (i.e. produce the same preferences over actions) up to a positive affine transformation: u'(x) = au(x) + b where a is positive.
Suppose I have u(vanilla) = 3, u(chocolate) = 8. I prefer an action that yields a 50% chance of chocolate over an action that yields a 100% chance of vanilla, because 0.5(8) > 1.0(3).
Under the positive affine transformation a = 1, b = 4; we get that u'(vanilla) = 7 and u'(chocolate) = 12. Therefore I now prefer the action that yields a 100% chance of vanilla, because 1.0(7) > 0.5(12).
How to resolve the contradiction?
You forgot to specify the utility of the other outcome when your 50% chance of chocolate fails. Assuming the outcome ("failed attempt at chocolate") has a u utility of 0, it will then have a u' utility that is nonzero, which you failed to include in your second calculation.
Nice try, buster ;)
BTW: Up voted, I would strongly like to see more of this type of content.