OFFSET
1,3
COMMENTS
See A066272 for definition of anti-divisor.
LINKS
Jon Perry, Class sums
EXAMPLE
f(1)=f(2)=f(3)=0, f(4)=1, f(5)=-1, f(6)=0, so the first 3 gaps are 1, 1, 3.
MATHEMATICA
a[ n_ ] := Sum[ Which[ Mod[ n, d ]==(d-1)/2, -1, Mod[ n, d ]==(d+1)/2, 1, True, 0 ], {d, 2, n-1} ]; z=Select[ Range[ 1, 500 ], a[ # ]==0& ]; Drop[ z, 1 ]-Drop[ z, -1 ]
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Jan 06 2002
EXTENSIONS
Edited by Dean Hickerson, Jan 17 2002
STATUS
approved