Incrementing the for loop (loop variable) in scala by power of 5

I had asked this question on Javaranch, but couldn't get a response there. So posting it here as well: I have this particular requirement where the increment in the loop variable is to be done by