|
|
A254449
|
|
a(n) is the smallest nonnegative integer such that a(n)! contains a string of exactly n consecutive 4's.
|
|
11
|
|
|
0, 4, 21, 63, 117, 375, 1325, 1253, 5741, 30455, 83393, 68094, 565882, 2666148, 1514639
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
a(6) and a(7) are anagrams.
|
|
LINKS
|
|
|
EXAMPLE
|
a(1) = 4 since 4! = 24 contains '4', and 4 is the smallest integer for which this condition is met.
a(2) = 21 since 21! = 51090942171709440000 contains '44'.
|
|
MATHEMATICA
|
t = Table[4, n];
While[! MemberQ[Split[IntegerDigits[m!]], t], m++]; m];
|
|
PROG
|
(Python)
if n == 0:
return 0
i, m, s = 1, 1, '4'*n
s2 = s+'4'
while True:
m *= i
sn = str(m)
if s in sn and s2 not in sn:
return i
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|