Computation Workshop Solution Checker

Counting Triples

For each integer \( N \), let \( A(N) \) denote the number of ordered triples \( (x,y,z) \) of integers such that \( x^3 + y^3 + z^3 - 3xyz = N \). For example \( A(1) = 3 \) because there are three triples: \( (1,0,0), (0,1,0), (0,0,1) \).
Part A Determine \(A(28)\)
Part B Determine \(A(9828)\)