OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10080
EXAMPLE
k*3/(k-3) and k*3/(k+3) are integers only for k=6. Thus since 6 is the largest k-value, a(3) = 6.
PROG
(PARI) a(n)=for(k=-n*(n+1), 0, if(-k!=n, if((-k*n)/(-k+n)==0&&(-k*n)/(-k-n)==0, return(-k))))
n=1; while(n<100, print1(a(n), ", "); n+=1)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Derek Orr, May 29 2014
STATUS
approved