A381922 Numbers k>0 such that the Hamming weight of k! is a factorial.
1, 2, 3, 4, 7, 8, 9, 63, 64
Offset: 1
Examples
k = 7: A000120(A000142(7)) = 6, 6 is in A000142, thus 7 is a term.
Programs
-
Mathematica
factorialQ[n_] := factorialQ[n] = Module[{m = n, k = 2}, While[Divisible[m, k], m /= k; k++]; m == 1]; q[n_] := factorialQ[DigitCount[n!, 2, 1]]; Select[Range[100], q] (* Amiram Eldar, Mar 10 2025 *)
Comments