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!)
A053626 a(n) is the smallest positive integer k such that harmonic mean of n and k is an integer. 6
1, 2, 3, 4, 5, 2, 7, 8, 9, 10, 11, 4, 13, 14, 3, 16, 17, 6, 19, 5, 21, 22, 23, 8, 25, 26, 27, 4, 29, 6, 31, 32, 33, 34, 14, 12, 37, 38, 39, 10, 41, 7, 43, 44, 5, 46, 47, 16, 49, 50, 51, 52, 53, 18, 55, 8, 57, 58, 59, 12, 61, 62, 18, 64, 65, 6, 67, 68, 69, 28, 71, 9, 73, 74, 15, 76 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
If a(n) <> n, then n is in A005279.
a(n) is the smallest positive integer k such that n + k divides n^2 + k^2. - Altug Alkan, Mar 29 2018
LINKS
EXAMPLE
a(6) = 2 because harmonic mean of 6 and 2 is 3 which is an integer and harmonic mean of 6 and 1 is 12/7 which is not an integer.
MATHEMATICA
Array[If[Count[Partition[Divisors[#], 2, 1], _?(#2 < 2 #1 & @@ # &)] == 0, #, Block[{k = 1}, While[! IntegerQ@ HarmonicMean@{k, #}, k++]; k]] &, 76] (* Michael De Vlieger, Apr 05 2018 *)
PROG
(PARI) a(n) = {my(k=1); while((2*n*k) % (n+k) != 0, k++); k; } \\ Altug Alkan, Mar 29 2018
CROSSREFS
Cf. A005279.
Sequence in context: A162961 A145255 A344758 * A348990 A348968 A333696
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Mar 20 2000
EXTENSIONS
Name edited by Altug Alkan, Mar 29 2018
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 August 16 12:37 EDT 2024. Contains 375174 sequences. (Running on oeis4.)