OFFSET
1,1
COMMENTS
spf(k) is the sum of the prime factors of k with multiplicity, cf. A001414.
Condition spf(n) < n excludes 4 and the primes.
It appears that if a number k > n with k - spf(k) = n - spf(n) exists at all, then k <= 2*n. If this can be proved, the corresponding condition in the definition could be omitted.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 77, n-spf(n) = 77-18 = 59; for k = 93, k-spf(k) = 93-34 =59. Hence 77 is in the sequence.
MATHEMATICA
f[1] = 1; f[n_] := n - Plus @@ Times @@@ FactorInteger@n; aQ[n_] := (fn = f[n]) > 0 && Module[{ans = False}, Do[If[f[k] == fn, ans = True; Break[]], {k, n + 1, 2 n}]; ans]; Select[Range[200], aQ] (* Amiram Eldar, Sep 08 2019 *)
PROG
(Magma) spf:=func< n | &+[a[1]*a[2]: a in Factorization(n)] >; [ n: n in [2..190] | d gt 0 and exists(t){ k: k in [n+1..2*n] | d eq k-spf(k) } where d is n-spf(n) ];
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot, Mar 10 2009
EXTENSIONS
Edited, missing terms inserted and extended by Klaus Brockhaus, Mar 30 2009
STATUS
approved