A103674 If in binary representation n! contains 6! then 1 else 0.
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0
Offset: 0
Links
Programs
-
PARI
a(n)=n=n!;while(n>719, my(e=valuation(n,2),e1=valuation((n>>=e)+1,2)); n>>=e1; if(e>3 && e1==1 && bitand(n,31)==22, return(1))); 0 \\ Charles R Greathouse IV, Apr 07 2013
Comments