最少是3121只,下面是代码
public class TestTaoZi {
public static void main(String[] args) {
int number = 5;
while(true) {
if(isTheSmallestNumber(number)) {
break;
}
number++;
}
System.out.println(number);
}
static boolean isTheSmallestNumber(int number) {
int i = 0;
while(i 0) {
if((number-1)%5==0) {
int tmp = (number-1)/5 + 1;
number -= tmp;
i ++;
} else {
return false;
}
}
return true;
}
}