|
Search: id:A109657
|
|
|
| A109657 |
|
Numbers n such that the sum of the digits of sum_{k=1..n}(k!) is divisible by n. |
|
+0 1
|
|
| 1, 3, 6, 9, 12, 18, 54, 117, 272, 294, 296, 320, 783, 1125, 2088, 3375
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
COMMENT
|
Next term after 3375 is greater than 10000. Most, but not all, of the terms in this sequence are divisible by 3; is this a coincidence?
|
|
EXAMPLE
|
sum_{k=1..12}(k!) = 522956313; the digits of 522956313 sum to 36, which is divisible by 12, so 12 is in the sequence.
|
|
MATHEMATICA
|
s = 0; Do[s += n!; k = Plus @@ IntegerDigits[s]; If[Mod[k, n] == 0, Print[n]], {n, 1, 10000}]
|
|
CROSSREFS
|
Sequence in context: A063996 A065119 A092421 this_sequence A118519 A089757 A083491
Adjacent sequences: A109654 A109655 A109656 this_sequence A109658 A109659 A109660
|
|
KEYWORD
|
base,more,nonn
|
|
AUTHOR
|
Ryan Propper (rpropper(AT)stanford.edu), Aug 06 2005
|
|
|
Search completed in 0.002 seconds
|