public static void problem119() {
		ArrayList<Long> liste = new ArrayList<Long>();
		String tall = "10000000000000";
		for (int i = 2; i < (tall.length()-1)*9+2; i++) {
			int base = i;
			long sum = 1;
			while(sum < Long.valueOf(tall)){
				sum*=base;
				String tallString = ""+sum;
				int verdi=0;
				for (int j = 0; j < tallString.length(); j++) {
					verdi += tallString.charAt(j)-'0';
				}
				if (base == verdi && sum > 10)
					liste.add(sum);
			}
		}
		long storste = 0;
		for (int i = 0; i < liste.size(); i++) {
			if (storste < liste.get(i))
				storste = liste.get(i);
		}
		
		System.out.println(liste);
		System.out.println(storste);
		
//		if (i^x == verdi(""+i^x))
//		12*9
	}