in reply to numeric manipulation

can this be done without a loop
No. There will always be a loop, even if it's not immediately obvious.