The solutions to Brian's problem