OFFSET
1,6
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..21000
Antti Karttunen, Data supplement: n, a(n) computed for n = 1..100000
FORMULA
a(n) = n - A091732(n).
Sum_{k=1..n} a(k) ~ c * n^2, where c = 1/2 - A327575 = 0.171064... . - Amiram Eldar, Dec 15 2023
MATHEMATICA
f[p_, e_] := p^(2^(-1 + Position[Reverse @ IntegerDigits[e, 2], 1])); a[1] = 0; a[n_] := n - Times @@ (Flatten@(f @@@ FactorInteger[n]) - 1); Array[a, 100] (* Amiram Eldar, Jan 09 2021 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 15 2019
STATUS
approved