login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A173500 Number of sequences of length n with terms from {0,1,...,n-1} such that the sum of terms is 0 modulo n and the i-th term is not i or 2i modulo n. 1
0, 0, 0, 6, 64, 854, 13392, 244944, 5124266, 120795956, 3169804000, 91666666668, 2897010809280, 99350833566282, 3674884626652666, 145845089585448960, 6182031393612132352, 278750799336055446646, 13322922112485213149376 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

LINKS

Table of n, a(n) for n=1..19.

45th IMO Team Selection Test Lincoln, Nebraska, Art of Problem Solving forum

FORMULA

For prime p, a(p) = (p-1)*((p-2)^(p-1)-1)/p.

CROSSREFS

Cf. A173499

Sequence in context: A239847 A264634 A296165 * A141008 A258425 A249592

Adjacent sequences:  A173497 A173498 A173499 * A173501 A173502 A173503

KEYWORD

nonn

AUTHOR

Max Alekseyev, Feb 20 2010

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 17 15:32 EST 2020. Contains 331998 sequences. (Running on oeis4.)