3n+1 assignment sollution