OFFSET
1,16
COMMENTS
First differs from A386259 at n = 36.
First differs from A370078 at n = 64.
The first occurrence of k = 0, 1, 2, ... is at n = A085629(2^k) = 1, 4, 16, 144, 1296, 20736, 518400, ... .
The asymptotic density of the occurrences of 1 in this sequence is the asymptotic density of numbers whose prime factorization has only odd exponents except for one exponent that is of the form 4*k+2 (k >= 0) which equals A065463 * Sum_{p prime} p^2/(p^4+p^3+p-1) = 0.22670657681840536721... .
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
a[n_] := IntegerExponent[Times @@ FactorInteger[n][[;; , 2]], 2]; Array[a, 100]
PROG
(PARI) a(n) = vecsum(apply(x -> valuation(x, 2), factor(n)[, 2]));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Jul 17 2025
STATUS
approved
