(a) A function f:Z→Z is called Z-good if f(a2+b)=f(b2+a) for all a,b∈Z. What is the largest possible number of distinct values that can occur among f(1),…,f(2023), where f is a Z-good function?(b) A function f:N→N is called N-good if f(a2+b)=f(b2+a) for all a,b∈N. What is the largest possible number of distinct values that can occur among f(1),…,f(2023), where f is a N-good function?