|
|
A254500
|
|
a(n) is the smallest nonnegative integer such that a(n)! contains a string of exactly n consecutive 5's.
|
|
10
|
|
|
0, 7, 17, 70, 111, 258, 689, 454, 7133, 15977, 82869, 111044, 536687, 384769, 2750561, 7063105
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
a(1) = 7 as 7! equals 5040, which contains '5' and 5 is the smallest integer for which the condition is met.
|
|
MATHEMATICA
|
If[n == 0, While[MemberQ[IntegerDigits[m!], 5], m++]; m,
t = Table[5, n];
While[! MemberQ[Split[IntegerDigits[m!]], t], m++]; m]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|