OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
Numbers k such that k - d(k) - phi(k) + 1 > k/2.
EXAMPLE
k = 42 is a term because d = 8 divisors, r = 12 coprimes and u = 23 unrelated belong to it: u = 23 > 19 = 8 + 12 - 1 = d + r - 1.
MAPLE
filter:= n -> n > 2*(numtheory:-tau(n) + numtheory:-phi(n)-1):
select(filter, [$1..1000]); # Robert Israel, May 15 2017
MATHEMATICA
Do[r=EulerPhi[n]; d=DivisorSigma[0, n]; u=n-d-r+1; If[Greater[u, n/2], Print[n, {d, r, u}]], {n, 1, 100}]
(* Second program: *)
Select[Range@ 256, # - (DivisorSigma[0, #] + EulerPhi[#] - 1) > #/2 &] (* Michael De Vlieger, Jul 22 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 07 2003
STATUS
approved