Number of squares in 3-dimensional space whose four vertices have coordinates (x,y,z) in the set {1,...,n}.

A334881

Number of squares in 3-dimensional space whose four vertices have coordinates (x,y,z) in the set {1,...,n}.

Terms

    a(0) =0a(1) =0a(2) =6a(3) =54a(4) =240a(5) =810a(6) =2274a(7) =5304a(8) =10752a(9) =19992a(10) =34854a(11) =57774a(12) =91200a(13) =139338a(14) =206394a(15) =296832a(16) =417120a(17) =575556a(18) =779238a(19) =1037514a(20) =1359792a(21) =1760694a(22) =2251362a(23) =2845140a(24) =3554976a(25) =4404876a(26) =5416278a(27) =6605946a(28) =7996896a(29) =9621678

External references