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!)
A226964 Numbers n such that 1^n + 2^n + 3^n + ... + n^n == 6 (mod n). 10
1, 3, 4, 20, 36, 252, 10836 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Also, numbers n such that B(n)*n == 6 (mod n), where B(n) is the n-th Bernoulli number. Equivalently, SUM[prime p, (p-1) divides n] n/p == -6 (mod n). There are no other terms below 10^15. - Max Alekseyev, Aug 26 2013

LINKS

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

MATHEMATICA

Select[Range[10000], Mod[Sum[PowerMod[i, #, #], {i, #}], #] == 6 &]

PROG

(PARI) is(n)=Mod(sumdiv(n, d, if(isprime(d+1), n/(d+1))), n)==-6 \\ Charles R Greathouse IV, Nov 13 2013

CROSSREFS

Cf. A031971.

Solutions to 1^n+2^n+...+n^n == m (mod n): A005408 (m=0), A014117 (m=1), A226960 (m=2), A226961 (m=3), A226962 (m=4), A226963 (m=5), this sequence (m=6), A226965 (m=7), A226966 (m=8), A226967 (m=9), A280041 (m=19), A280043 (m=43), A302343 (m=79), A302344 (m=193).

Sequence in context: A124631 A262033 A062870 * A222763 A306668 A300499

Adjacent sequences:  A226961 A226962 A226963 * A226965 A226966 A226967

KEYWORD

nonn,more

AUTHOR

José María Grau Ribas, Jun 24 2013

EXTENSIONS

1,3,4 prepended by Max Alekseyev, Aug 26 2013

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 July 24 01:41 EDT 2021. Contains 346269 sequences. (Running on oeis4.)