How to make update statement incremental by 1 for group Id from step 1 to 3?

OK thanks it solved