login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A243045 Largest number k such that k*n/(k+n) and k*n/(k-n) are integers or 0 if no such number exists. 5
0, 0, 6, 12, 0, 12, 0, 24, 18, 15, 0, 60, 0, 0, 60, 48, 0, 36, 0, 60, 42, 0, 0, 168, 0, 0, 54, 84, 0, 120, 0, 96, 66, 0, 210, 180, 0, 0, 78, 360, 0, 105, 0, 132, 180, 0, 0, 336, 0, 75, 102, 156, 0, 108, 66, 168, 114, 0, 0, 660, 0, 0, 504, 192, 0, 132, 0, 204, 138, 420, 0, 504 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
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
Cf. A243017, A243046, A243047 (positions of 0's), A360120 (their characteristic function).
Sequence in context: A028584 A243017 A084342 * A242931 A341828 A110645
KEYWORD
nonn,look
AUTHOR
Derek Orr, May 29 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 12:46 EDT 2024. Contains 371942 sequences. (Running on oeis4.)