sampling the mean
A challenge found on the board of the coffee room at CEREMADE, Université Paris Dauphine: When sampling with replacement three numbers in {0,1,…,N}, what is the probability that their average is (at least) one of the three? With a (code-golfed!) brute force solution of mean(!apply((a
