public static long PandigitalMultiples(long n) { long maxpandigital = 1; for (int i = 1; i < n; i++) { long mult = i; int k = 2; while (mult < 1000000000) { mult = CombinatoricFunctions.concatenatenum(mult, k * i); if (mult > 100000000 && mult < 1000000000) { if (MiscFunctions.IsPandigital((int)mult)) { if (mult > maxpandigital) { maxpandigital = mult; } } } k++; } } return(maxpandigital); }