int vol( int i )
{ int r = 0;
  while ( i > 1 ){
    if ( i & 1 ) i = (3*i+1) / 2;
    else i = i / 2;
    r++;
  }
  return r;
}
