OFFSET
1,12
LINKS
EXAMPLE
n=12->'1100', 12!=479001600->'11100100011001111110000000000' with three occurrences of '1100': '.1100....1100....1100........', therefore a(12)=3.
MAPLE
f:= proc(n) local L, Lf;
L:= convert(convert(n, binary), string);
Lf:= convert(convert(n!, binary), string);
nops([StringTools:-SearchAll(L, Lf)])
end proc:
map(f, [$1..100]); # Robert Israel, May 20 2016
MATHEMATICA
non[n_]:=Module[{b=IntegerDigits[n, 2], f=IntegerDigits[n!, 2]}, Length[ Select[ Partition[ f, Length[b], 1], #==b&]]]; Array[non, 110] (* Harvey P. Dale, Jun 04 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 10 2004
STATUS
approved
