Integers on a Sphere

Can you find all the integer coordinates on a sphere of radius 3?
Exploring and noticing Working systematically Conjecturing and generalising Visualising and representing Reasoning, convincing and proving
Being curious Being resourceful Being resilient Being collaborative

Problem



A sphere of radius 3 has its centre at the origin.

How many points on the surface of the sphere have coordinates that are all integers?

This problem is taken from the UKMT Mathematical Challenges.