Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A109675
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A109675 Numbers n such that the sum of the digits of (n^n - 1) is divisible by n. +0
1
1, 4, 5, 10, 25, 50, 100, 446, 1000, 9775, 10000, 100000 (list; graph; listen)
OFFSET

1,2

COMMENT

n = 10^k is a member of the sequence, for all k >= 0. Proof: Let n = 10^k for some nonnegative integer k. Then n^n - 1 has k*10^k 9's and no other digits, so its digits sum to 9*k*10^k = 9*k*n, a multiple of n.

EXAMPLE

The digits of 9775^9775 - 1 sum to 175950 and 175950 is divisible by 9775, so 9775 is in the sequence.

MATHEMATICA

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

CROSSREFS

Sequence in context: A054173 A049898 A166577 this_sequence A052508 A074098 A126069

Adjacent sequences: A109672 A109673 A109674 this_sequence A109676 A109677 A109678

KEYWORD

base,hard,more,nonn

AUTHOR

Ryan Propper (rpropper(AT)stanford.edu), Aug 06 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 23 17:09 EST 2009. Contains 167438 sequences.


AT&T Labs Research