Reading Halmos' I want to be a mathematician, he mentions a continuous function without a tangent. Naturally, I was curious to see how such a function could possibly exist, and I imagined it to be some obscure function where versions of $|x|$ are defined on infinitely small intervals. Much to my surprise, the series representation of the function was beautiful, especially for someone who just went through power series in Calculus.
This lead me to another question: was this function discovered or constructed? In other words, did Weierstrass discover the function, as Wikipedia slightly implies, or did Weierstrass construct the function, as in solving a problem of the likes "Construct a function that is everywhere continuous but nowhere differentiable."?