Try:
awk '{for (i=3;i<=NF;i+=3)$i*=3; print}' input.txt > output.txt
I have not tested this yet (posted on my iPod). The print
command without parameters should print out the whole (partially modified) line. You might have to set OFS=" "
in the BEGIN
section to get the blank as the separator in the output.