private HashMap<Integer, Integer> T(Integer x,Integer n){
		HashMap<Integer, Integer> v = new HashMap<Integer, Integer>();
		
		Integer cur = x;
		while(!v.containsKey(n) && !v.containsKey(cur)){
			Integer sq = this.S(cur);
			v.put(sq, 1);
			cur = sq;
		}
		
		return v;
	}