public static int Fase( int i, int ant, int ant2 ) {
		if ( i == tam ) {
			return 1;
		}
		int max = 0;
		for ( int j = 0; j < 3; j++ ) {
			if ( ant == 2 && j != ant2 && j != 2 ) {
				max += Fase( i + 1, j, ant );
			}
			if ( ant != 2 && j != ant ) {
				max += Fase( i + 1, j, ant );
			}
			if ( ant != 2 && i + 1 != tam ) {
				max += Fase( i + 1, 2, ant );
			}
		}
		return max;
	}