login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A071782 Sum of distinct squares in Z_n (mod n). 0
0, 1, 1, 1, 0, 2, 0, 5, 3, 5, 0, 2, 0, 0, 0, 14, 0, 6, 0, 15, 7, 0, 0, 18, 0, 13, 18, 0, 0, 0, 0, 8, 0, 17, 0, 24, 0, 0, 13, 15, 0, 14, 0, 22, 0, 0, 0, 28, 0, 25, 0, 39, 0, 9, 0, 28, 19, 29, 0, 30, 0, 0, 21, 32, 0, 0, 0, 17, 0, 0, 0, 36, 0, 37, 50, 38, 0, 26, 0, 10 (list; graph; refs; listen; history; internal format)
OFFSET

1,6

COMMENTS

a(n)=0 for prime n>3. - T. D. Noe (noe(AT)sspectra.com), Sep 06 2005

MATHEMATICA

a[n_] := Mod[Apply[Plus, Union[Table[Mod[i^2, n], {i, 1, n}]]], n]

CROSSREFS

Sequence in context: A184854 A021491 A121705 * A107363 A154954 A095245

Adjacent sequences:  A071779 A071780 A071781 * A071783 A071784 A071785

KEYWORD

nonn

AUTHOR

Santi Spadaro (spados(AT)katamail.com), Jun 24 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 19:15 EST 2012. Contains 205852 sequences.