OFFSET
2,1
COMMENTS
EXAMPLE
C(2,1) = 2, C(4,2) = 6 = 2 * 3, C(6,3) = 20 = 2^2 * 5, and 3 = prime(2), 5 = prime(3), so a(2) = 2 and a(3) = 3.
PROG
(PARI) valp(n, p)=my(s); while(n\=p, s+=n); s
a(n)=my(q=prime(n), k=1); while(k++, forprime(p=3, q-1, if(valp(2*k, p)>2*valp(k, p), next(2))); if(valp(2*k, q)>2*valp(k, q), return(k))) \\ Charles R Greathouse IV, Feb 03 2016
CROSSREFS
KEYWORD
bref,hard,more,nonn
AUTHOR
Jonathan Sondow, Jan 18 2016
STATUS
approved