A063748 Greatest x that is a solution to x-phi(x)=n or zero if there is no solution, where phi(x) is Euler's totient function.
4, 9, 8, 25, 10, 49, 16, 27, 0, 121, 22, 169, 26, 55, 32, 289, 34, 361, 38, 85, 30, 529, 46, 133, 0, 187, 52, 841, 58, 961, 64, 253, 0, 323, 68, 1369, 74, 391, 76, 1681, 82, 1849, 86, 493, 70, 2209, 94, 589, 0, 667, 0, 2809, 106, 703, 104, 697, 0, 3481, 118, 3721, 122
Offset: 2
Keywords
Examples
For n=15, the solutions are x=39 and x=55, so a(15)=55. Note that 55=5*11 and 5+11=n+1.
Links
- T. D. Noe, Table of n, a(n) for n=2..1000
Crossrefs
Programs
-
Mathematica
nn=10^4; lim=Floor[Sqrt[nn]]; mx=Table[0,{lim}]; Do[c=n-EulerPhi[n]; If[0
T. D. Noe *) Table[Module[{k = n^2}, While[And[k - EulerPhi@ k != n, k > 0], k--]; k], {n, 2, 62}] (* Michael De Vlieger, Mar 17 2017 *)
Formula
a(n)=Max{x : A051953(x)=n} if the inverse set is not empty; a(n)=0 if no inverse exists.
Extensions
Corrected and edited by T. D. Noe, Oct 30 2006
Comments