Hail Satan

What is the smallest integer n > 0 n > 0 such that the decimal representation of n ! n! contains the digit 6 6 exactly 666 666 times?


The answer is 2413.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Giorgos K.
Apr 15, 2018

using M a t h e m a t i c a Mathematica

Select[Range@10000,Count[IntegerDigits[#!],6]==666&]

{2413, 2527, 2535}

Interesting!

Stefan Popescu - 3 years, 1 month ago
Stefan Popescu
Apr 7, 2018

Once again, there is no easy way to solve this problem. Here is a Python 3.4 program I used to solve it (it literally checks every value of n until it finds one that works).

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...