OFFSET
1,2
COMMENTS
LINKS
MATHEMATICA
b[n_] := If[n==1, 0, Total[2^(PrimePi /@ FactorInteger[n][[All, 1]] - 1)]];
filterQ[n_] := b[n] < n;
Select[Range[1000], filterQ] (* Jean-François Alcover, Dec 31 2020 *)
PROG
(PARI)
A007947(n) = factorback(factorint(n)[, 1]);
A048675(n) = { my(f = factor(n)); sum(k=1, #f~, f[k, 2]*2^primepi(f[k, 1]))/2; }; \\ After Michel Marcus
isA286608(n) = (A087207(n) < n);
n=0; j=1; k=1; while(j <= 10000, n=n+1; if(isA286608(n), write("b286608.txt", j, " ", n); j=j+1, write("b286609.txt", k, " ", n); k=k+1));
(Scheme, with Antti Karttunen's IntSeq-library)
(Python)
from sympy import factorint, primepi
def a(n):
f=factorint(n)
return sum([2**primepi(i - 1) for i in f])
print([n for n in range(1, 201) if a(n)<n]) # Indranil Ghosh, Jun 20 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Jun 20 2017
STATUS
approved