login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A264688 The decimal digits of n appear n times in the decimal representation of n!. 0
0, 1, 1170, 1528, 9877, 9886, 9897, 11535 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

There are no more terms up to n=21000, checked using the Python program below.

a(9) > 200000. - Dana Jacobsen, Jan 03 2016

LINKS

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

EXAMPLE

1170 belongs to this sequence because the digits 1, 7 and 0 appear 1170 times in total in the decimal representation of 1170!.

0! = 1, which contains no zeros, so 0 is a term.

PROG

(Python)

from math import factorial

def in_a(n):

....f = str(factorial(n))

....s = set(str(n))

....return sum(f.count(d) for d in s)==n

(Perl) use ntheory ":all"; sub is_a264688 { my $n = shift; $n == eval "factorial($n) =~ tr/[$n]//"; } # Dana Jacobsen, Jan 03 2016

CROSSREFS

Sequence in context: A065656 A185468 A209825 * A043432 A065703 A202487

Adjacent sequences:  A264685 A264686 A264687 * A264689 A264690 A264691

KEYWORD

nonn,base,more

AUTHOR

Christian Perfect, Jan 03 2016

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 August 4 09:03 EDT 2020. Contains 336201 sequences. (Running on oeis4.)