=IFERROR((1-1*2)*IMAGINARY(IMDIV(IMDIV(COMPLEX(-(ROW(OFFSET(A1,,,A1*2+1))-(A1*2+1+1)/2),(COLUMN(OFFSET(A1,,,,A1*2+1))-(A1*2+1+1)/2)),IMCONJUGATE("1+i")),IMPOWER("-i",3-3*1-QUOTIENT(IMARGUMENT(IMDIV(COMPLEX(-(ROW(OFFSET(A1,,,A1*2+1))-(A1*2+1+1)/2),(COLUMN(OFFSET(A1,,,,A1*2+1))-(A1*2+1+1)/2)),IMCONJUGATE("1+i")))+PI()-0.001*1,PI()/2))))*2+((ABS((ROW(OFFSET(A1,,,A1*2+1))-(A1*2+1+1)/2)+(COLUMN(OFFSET(A1,,,,A1*2+1))-(A1*2+1+1)/2))+ABS((ROW(OFFSET(A1,,,A1*2+1))-(A1*2+1+1)/2)-(COLUMN(OFFSET(A1,,,,A1*2+1))-(A1*2+1+1)/2))))*ABS(3-3*1-MOD(QUOTIENT(IMARGUMENT(IMDIV(COMPLEX(-(ROW(OFFSET(A1,,,A1*2+1))-(A1*2+1+1)/2),(COLUMN(OFFSET(A1,,,,A1*2+1))-(A1*2+1+1)/2)),IMCONJUGATE("1+i")))+PI()-0.001*1,PI()/2),4))+((ABS((ROW(OFFSET(A1,,,A1*2+1))-(A1*2+1+1)/2)+(COLUMN(OFFSET(A1,,,,A1*2+1))-(A1*2+1+1)/2))+ABS((ROW(OFFSET(A1,,,A1*2+1))-(A1*2+1+1)/2)-(COLUMN(OFFSET(A1,,,,A1*2+1))-(A1*2+1+1)/2)))-1)^2,1)