OFFSET
1,2
EXAMPLE
a(6)=16 because 6! = [1, 0, 1, 1, 0, 1, 0, 0, 0, 0] and 6!+16 = [1, 0, 1, 1, 1, 0, 0, 0, 0, 0].
PROG
(PARI) a(n) = {s = norml2(binary(n!)); m = 1; while (norml2(binary(m+n!)) != s, m++); return (m); } \\ Michel Marcus, Jun 28 2013
(PARI) a(n)=my(N=n!, h=hammingweight(N), m); while(hammingweight(N+m++)!=h, ); m \\ Charles R Greathouse IV, Jun 28 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jason Earls, Dec 09 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 04 2003
STATUS
approved