Would it be wise to use a loop to do the following?

enter a number eg 5 then multiply 0.2 by 1.0 squared then 1.2 squared and so forth until you reach the number then user typed in.