OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
Max Alekseyev, PARI/GP Scripts for Miscellaneous Math Problems (see invphi.gp there).
FORMULA
a(n) = Min({x; Card(InvPhi(x)) = 2n-1}); a(1)=0 because of Carmichael conjecture.
EXAMPLE
For n = 7: 2n-1 = 13, a(7) = Min(InvPhi(13)) = Min({396,400,420,552,560,660}) = 396.
PROG
(PARI) a(n) = {if (n==1, return (0)); my(k=1); while(#invphi(k) != 2*n-1, k++); k; } \\ Michel Marcus, May 13 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 23 2002
EXTENSIONS
a(12)-a(47) from Donovan Johnson, Jul 27 2011
STATUS
approved