login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A254717 a(n) is the smallest nonnegative integer such that a(n)! contains a string of exactly n consecutive 9's. 11
0, 12, 11, 36, 99, 207, 629, 3982, 13216, 24090, 65698, 131076, 176801, 2074822, 5203944, 3716991 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Table of n, a(n) for n=0..15.

EXAMPLE

a(1) = 12 since 12! = 479001600 contains '9' and 12 is the smallest integer for which the condition is met,

a(2) = 11 since 11! = 39916800 contains '99' and 11 is the smallest integer for which the condition is met.

MATHEMATICA

A254717[n_] := Module[{m = 0},

   If[n == 0, While[MemberQ[IntegerDigits[m!], 9], m++]; m,

    t = Table[9, n];

    While[! MemberQ[Split[IntegerDigits[m!]], t], m++]; m]];

Table[A254717[n], {n, 0, 7}] (* Robert Price, Mar 21 2019 *)

PROG

(PARI) a(n)=k=0; while(k<10^4, d=digits(2*10^(#(digits(k!))+1)+10*k!); for(j=1, #d-n+1, c=0; for(i=j, j+n-1, if(d[i]==9, c++); if(d[i]!=9, c=0; break)); if(c==n&&d[j+n]!=9&&d[j-1]!=9, return(k))); if(c==n, return(k)); if(c!=n, k++))

for(n=1, 6, print1(a(n), ", ")) \\ Derek Orr, Feb 06 2015

CROSSREFS

Cf. A254042, A254447, A254448, A254449, A254500, A254501, A254502, A254716.

Sequence in context: A086045 A072220 A171986 * A195748 A038337 A155825

Adjacent sequences:  A254714 A254715 A254716 * A254718 A254719 A254720

KEYWORD

nonn,more,base

AUTHOR

Martin Y. Champel, Feb 06 2015

EXTENSIONS

a(12) from Jon E. Schoenfield, Feb 21 2015

a(13)-a(15) 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 26 16:08 EDT 2021. Contains 347669 sequences. (Running on oeis4.)