OFFSET
1,1
COMMENTS
a(p) = 2p+2 if p is a prime.
EXAMPLE
a(6) = 24 as there are 6 coprime numbers to 6 between 6 and 24: 7, 11, 13, 17, 19, 23.
PROG
(PARI) for(n=1, 100, s=0:for(k=n+1, 10^8, if(gcd(k, n)==1, s=s+1: if(s==n, s=k+1:break))):print1(s", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 30 2002
EXTENSIONS
Corrected and extended by Ralf Stephan, Mar 26 2003
STATUS
approved