(+get,{$_%2??$_*3+1!!$_/2}...1)~~[$_-1,.max]>>.say