d|nλd=1,n is a square,0,otherwise.