|
|
A254501
|
|
a(n) is the smallest nonnegative integer such that a(n)! contains a string of exactly n consecutive 6's.
|
|
10
|
|
|
0, 3, 20, 38, 35, 213, 1122, 3415, 10214, 32430, 145197, 351679, 666779, 813843, 3765934
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
EXAMPLE
|
a(1) = 3 since 3! equals 6 and contains '6'.
a(2) = 20 since 20! contains '66' and 20 is the smallest integer for which the condition is met.
|
|
MATHEMATICA
|
If[n == 0, While[MemberQ[IntegerDigits[m!], 6], m++]; m,
t = Table[6, n];
While[! MemberQ[Split[IntegerDigits[m!]], t], m++]; m]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|