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

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A109662 Numbers n such that the sum of the digits of (n^n - n!) is divisible by n. 0
1, 2, 3, 9, 14, 15, 29, 33, 45, 81, 102, 105, 126, 142, 157, 288, 414, 1184, 2133, 10449, 16369, 17221, 46524, 214179, 216741 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

The quotients are: 0, 1, 1, 5, 5, 6, 7, 6, 8, 9, 9, 9, 9, 10, 10, 11, 12, 14, 15, 18, 19, 19, 21, 24, 24.

No more terms < 500000. [Lars Blomberg, Jul 05 2011]

LINKS

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

EXAMPLE

The digits of 414^414 - 414! sum to 4968 and 4968 is divisible by 414, so 414 is in the sequence.

MATHEMATICA

Do[s = n^n - n!; k = Plus @@ IntegerDigits[s]; If[Mod[k, n] == 0, Print[n]], {n, 1, 10000}]

CROSSREFS

Sequence in context: A269154 A225792 A057293 * A116222 A048038 A113501

Adjacent sequences:  A109659 A109660 A109661 * A109663 A109664 A109665

KEYWORD

base,more,nonn

AUTHOR

Ryan Propper, Aug 06 2005

EXTENSIONS

Terms a(20)-a(25) from Lars Blomberg, Jul 05 2011.

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 December 13 17:37 EST 2019. Contains 329970 sequences. (Running on oeis4.)