OFFSET
1,6
COMMENTS
Question: Is there any direct formula for this sequence? Cf. for example A146564. - Antti Karttunen, Feb 18 2023
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10080
FORMULA
EXAMPLE
6*k/(k-6) and 6*k/(k+6) are integers for k = 3 (-6 and 2, respectively) and k = 12 (12 and 4, respectively). Thus a(6) = 2.
PROG
(PARI) a(n)={t=0; for(k=1, n*(n+1), if(k!=n, if((k*n)%(k+n)==0&&(k*n)%(k-n)==0, t+=1))); return(t)} \\ - Typo corrected by Antti Karttunen, Feb 18 2023
n=1, while(n<100, print1(a(n), ", "); n+=1)
(PARI) A243046(n) = sum(k=1, n*(n+1), (k!=n && !((k*n)%(k+n)) && !((k*n)%(k-n)))); \\ Antti Karttunen, Feb 18 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, May 29 2014
STATUS
approved