OFFSET
1,3
COMMENTS
Column 1 of A299762. - Omar E. Pol, Mar 14 2018
This is a right inverse of sigma = A000203 on A002191 = range(sigma): if n is in A002191, then there is some x with sigma(x) = n, and by definition a(n) is the smallest such x, so sigma(a(n)) = n. - M. F. Hasler, Nov 22 2019
REFERENCES
R. K. Guy, Unsolved Problems Theory of Numbers, B1.
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
Max Alekseyev, PARI/GP Scripts for Miscellaneous Math Problems: invphi.gp, Oct. 2005
EXAMPLE
sigma(1) = 1, so a(1) = 1.
There is no k with sigma(k) = 2, since sigma(k) >= k + 1 for all k > 1 and sigma(1) = 1, so a(2) = 0.
sigma(4) = 7, and 4 is the smallest (since only) such number, so a(7) = 4.
6 and 12 are the only k with sigma(k) = 12, so 6 is the smallest and a(12) = 6.
MATHEMATICA
Do[ k = 1; While[ DivisorSigma[ 1, k ] != n && k < 10^4, k++ ]; If[ k != 10^4, Print[ k ], Print[ 0 ] ], {n, 1, 100} ]
PROG
(PARI) a(n)=for(k=1, n, if(sigma(k)==n, return(k))); 0 \\ Charles R Greathouse IV, Mar 09 2014
(PARI) A051444(n)=if(n=invsigma(n), vecmin(n)) \\ See Alekseyev link for invsigma(). An update including invsigmaMin = A051444 is planned. - M. F. Hasler, Nov 21 2019
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
Edited by M. F. Hasler, Nov 22 2019
STATUS
approved