A112730 Numbers k such that the equation sigma(x)-phi(x)=k has at least one solution.
2, 5, 7, 10, 11, 14, 15, 16, 18, 20, 22, 23, 24, 26, 27, 28, 30, 32, 33, 34, 35, 36, 38, 39, 40, 42, 44, 47, 48, 50, 52, 54, 56, 59, 60, 62, 63, 64, 66, 67, 68, 72, 73, 74, 75, 76, 78, 79, 80, 83, 84, 86, 87, 88, 90, 92, 94, 95, 96, 98, 100, 102, 104, 106, 107, 108, 110, 112
Offset: 1
Keywords
Examples
5 is in the sequence because 4 is a solution to the equation sigma(x)-phi(x)=5.
Links
- Robert Israel, Table of n, a(n) for n = 1..4490 (terms <= 10000)
- Carlos Rivera, Puzzle 343. One more Faride's question, The Prime Puzzles and Problems Connection.
Programs
-
Maple
N:= 120: # for terms <= N S:= {}: for k from 1 to (N-1)^2/4 do v:= numtheory:-sigma(k) - numtheory:-phi(k); if v > 0 and v <= N then S:= S union {v} fi; od: sort(convert(S,list)); # Robert Israel, Jul 21 2025
Comments
=m+p+1. Phi(m) is certainly no greater than the number of integers smaller than or equal to m that are not divisible by p. Thus phi(m)<=m-q. Thus n=sigma(m)-phi(m)>=p+q+1. Finally, the arithmetic mean of two numbers is always greater than their geometric mean, so sqrt(m)=sqrt(pq)<=(p+q)/2<=(n-1)/2. Squaring both sides, m<=(n-1)^2/4.