OFFSET
1,3
COMMENTS
Since the largest k that makes k*n/(k+n) an integer is n*(n-1), the zero terms are definite.
Apart from 0's, sequence contains a few duplicates. a(6) = a(870) = 30 is one. - Antti Karttunen, Feb 18 2023
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10080
EXAMPLE
(6*3)/(6+3) = 2 is prime. Since 6 = 3*(3-1), 6 is the largest number that makes k*n/(k+n) an integer. Thus a(3) = 6.
PROG
(PARI) a(n)=for(k=n*(1-n), 0, s=(-k*n)/(-k+n); if(floor(s)==s, if(ispseudoprime(s), return(-k))))
n=1; while(n<100, print1(a(n), ", "); n+=1)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, May 27 2014
STATUS
approved