OFFSET
1,1
COMMENTS
If k is prime then nextprime(k)=k.
LINKS
Ray Chandler, Table of n, a(n) for n=1..32
EXAMPLE
For n=1, p=2, the least odd composite m such that f(2*m) > 2*f(m) is 27=a(1).
PROG
(PARI) f(n)=nextprime(n); g(n, a)=for(i=1, a, if(f(n*i)>f(n)*f(i) && !isprime(i) && Mod(i, 2)!=0, return(i))); forprime (i=1, 150, print1(g(i, 500000000), ", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
Mohammed Bouayoun (mohammed.bouayoun(AT)sanef.com), Apr 18 2006
EXTENSIONS
a(26)-a(30) from Zak Seidov, May 15 2007
a(31)-a(32) from Ray Chandler, May 30 2007
STATUS
approved