|
|
A254447
|
|
a(n) is the smallest nonnegative integer such that a(n)! contains a string of exactly n consecutive 2's.
|
|
11
|
|
|
0, 2, 13, 31, 45, 200, 854, 3358, 4698, 29324, 55295, 263489, 567993, 2328803
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
a(0) = 0 since 0! equals 1, which does not contain any '2'.
For n = 1, a(1) = 2 as 2! = 2 contains '2'.
For n = 2, a(2) = 13 as 13! = 6227020800 contains '22' and 13 is the smallest integer for which the condition is met.
|
|
MATHEMATICA
|
If[n == 0, While[MemberQ[IntegerDigits[m!], 2], m++]; m,
t = Table[2, n];
While[! MemberQ[Split[IntegerDigits[m!]], t], m++]; m]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|