text
package circleGroup;
public class CircleGroup {
int size = 64;
private int[][] table = new int[size][size];
public CircleGroup() {
for (int i = 0; i < size; i++) {
table[0][i] = i+1;
table[i][0] = i+1;
}
}
private void filling(int tr, int tc, int size) {
if(size==1){
return;
}
int s=size/2;
filling(tr,tc,s);
for(int i=tr;i<s;i++){
for(int j=tc;j<s;j++){
table[i+s][j+s]=table[i][j];
}
}
filling(tr+s,tc,s);
for(int i=tr+s;i<s;i++){
for(int j=tc;j<s;j++){
table[i-s][j+s]=table[i][j];
}
}
}
public static void main(String arg[]){
int tr=0,tc=0,size=4;
CircleGroup c=new CircleGroup();
c.filling(tr,tc,size);
for(int i=0;i<size;i++){
System.out.println();
for(int j=0;j<size;j++){
System.out.print(c.table[i][j]+" ");
}
}
}
}