using IterTools using Statistics F(x)=[mean(x),prod(x)^(1/length(x)), median(x)] Fnx(x,n)=nth(iterated(F,x),n)