a(n) is the number of ordered solutions (x,y,z) to x^2 + y^2 == z^2 mod n with 1 <= x,y,z <= n-1.

A136679

a(n) is the number of ordered solutions (x,y,z) to x^2 + y^2 == z^2 mod n with 1 <= x,y,z <= n-1.

Terms

    a(0) =0a(1) =0a(2) =0a(3) =9a(4) =0a(5) =16a(6) =24a(7) =45a(8) =56a(9) =48a(10) =80a(11) =137a(12) =96a(13) =144a(14) =128a(15) =315a(16) =192a(17) =302a(18) =288a(19) =425a(20) =312a(21) =400a(22) =440a(23) =621a(24) =544a(25) =528a(26) =728a(27) =969a(28) =672a(29) =704

External references