试试这个:
public static void main(String[] args){
int peaches;
for(int i=1;;i++){
if(i%5==1){
peaches=(i-1)/5*4;
if(peaches%5==1){
peaches=(peaches-1)/5*4;
if(peaches%5==1){
peaches=(peaches-1)/5*4;
if(peaches%5==1){
peaches=(peaches-1)/5*4;
if(peaches%5==1) System.out.println(i);
}
}
}
}
}
}