private static String lookNSay(int nOrder){
		
		ArrayList<String> sequence = new ArrayList<String>();	
		sequence.add("1@");										//add first order of sequence
		int i = 0; 												//keeps track of the current order being processed
		int count = 1; 											//keeps track of how many consecutive numbers in a row
		
		while(i < nOrder){
			
			int seqLength = sequence.get(i).length();			//keeps track of the length of next sequence string which will be calculated upon
			String newTerm = "";								//temporarily stores the result of the new term generated
			
			if(nOrder == 1){
				return sequence.get(0);
			}
			else{

				for(int j=0; j<seqLength-1; j++){
					
					if(sequence.get(i).charAt(j) == sequence.get(i).charAt(j+1) && sequence.get(i).charAt(j+1) != '@'){
						count++;
					}
					else{
						newTerm += Integer.toString(count) + sequence.get(i).charAt(j);
						count = 1;
					}
				}
			}	
			
			sequence.add(newTerm+"@");
			i++;
		}
		
		return sequence.get(nOrder-1);
	}