OFFSET
1,4
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
a[1] = 0; a[_?PrimeQ] = 0; a[n_] := For[p = FactorInteger[n][[1, 1]]; m = n - p, True, m = m - p, If[FactorInteger[m][[1, 1]] == p, Return[m]]]; Array[a, 102] (* Jean-François Alcover, Mar 08 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 06 2014
STATUS
approved