login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
a(n) > 10^7 for n >= 14. - Bert Dobbelaere, Oct 29 2018
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
A254447[n_] := Module[{m = 0},
If[n == 0, While[MemberQ[IntegerDigits[m!], 2], m++]; m,
t = Table[2, n];
While[! MemberQ[Split[IntegerDigits[m!]], t], m++]; m]];
Table[A254447[n], {n, 0, 13}](* Robert Price, Mar 20 2019 *)
CROSSREFS
Sequence in context: A132602 A359125 A001914 * A031392 A156980 A158720
KEYWORD
nonn,base,more
AUTHOR
Martin Y. Champel, Jan 30 2015
EXTENSIONS
a(11), a(12) from Jon E. Schoenfield, Feb 22 2015, Feb 27 2015
a(0) prepended by Jon E. Schoenfield, Mar 01 2015
a(13) from Bert Dobbelaere, Oct 29 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 16 00:06 EDT 2024. Contains 374343 sequences. (Running on oeis4.)