|
|
A109711
|
|
Numbers n such that the sum of the binary digits of n! is divisible by n.
|
|
1
|
|
|
1, 12, 78, 87, 292, 362, 1375, 1387, 1408, 1430, 1445, 88664, 355390, 356630, 1420936, 1423614, 1428922
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
The quotient (sum of binary digits)/n is 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 7, 8, 8, 9, 9, 9.
|
|
LINKS
|
|
|
EXAMPLE
|
The binary digits of 1445! sum to 5780 and 5780 is divisible by 1445, so 1445 is in the sequence.
|
|
MATHEMATICA
|
Do[k = n!; s = Plus @@ IntegerDigits[k, 2]; If[Mod[s, n] == 0, Print[n]], {n, 1, 10^4}]
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,hard,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|