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!)
A067109 Number of occurrences of the string n in n! (A000142). 3
1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 2, 0, 2, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 2, 0, 0, 0, 1, 1, 0, 2, 1, 1, 0, 0, 2, 0, 0, 1, 0, 0, 2, 2, 4, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 2, 1, 2, 5, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,37

COMMENTS

a(A033180(n)) > 0. - Reinhard Zumkeller, Aug 23 2008

LINKS

T. D. Noe, Table of n, a(n) for n=1..1000

EXAMPLE

a(4) = 1 as 4! = 24 and 4 occurs once;

a(5) = 0 as 5! = 120 does not contain a 5;

a(20) = 1 as 20! = 2432902008176640000 and 20 occurs once.

MATHEMATICA

Table[ Length[ StringPosition[ ToString[n! ], ToString[n]]], {n, 1, 75} ]

Table[SequenceCount[IntegerDigits[n!], IntegerDigits[n], Overlaps->True], {n, 100}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jun 01 2019 *)

PROG

(Haskell)

import Data.List (tails, isPrefixOf)

a067109 n = sum $

map (fromEnum . (show n `isPrefixOf`)) (tails $ show $ a000142 n)

-- Reinhard Zumkeller, Aug 28 2014

CROSSREFS

Cf. A000142, A033180.

Sequence in context: A342561 A342562 A343632 * A237584 A254886 A030219

Adjacent sequences: A067106 A067107 A067108 * A067110 A067111 A067112

KEYWORD

nonn,base

AUTHOR

Amarnath Murthy, Jan 08 2002

EXTENSIONS

More terms from Robert G. Wilson v, Jan 09 2002

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 February 3 21:17 EST 2023. Contains 360045 sequences. (Running on oeis4.)