[math-fun] Old bernpuzzle solved