OFFSET
1,7
COMMENTS
See A164823 for explanatory comment and the definition of "cos(x) mod j".
It appears that a(n) = 0 for all n >= 1 other than n = 4 and n = any prime >= 5. Also, a(n) is even for all primes of the form 4m+3, with m >= 1, since, referring to the triangle in A165609, if c mod n is nonexistent then so is -c mod n.
LINKS
Christopher Hunt Gribble, Table of n, a(n) for n = 1..1000.
CROSSREFS
KEYWORD
nonn
AUTHOR
Christopher Hunt Gribble, Sep 22 2009
EXTENSIONS
Comment corrected by Christopher Hunt Gribble, Sep 25 2009
STATUS
approved