A055081 Number of positive integers whose harmonic mean with n is a positive integer.
1, 2, 3, 3, 3, 7, 3, 4, 5, 6, 3, 10, 3, 6, 10, 5, 3, 11, 3, 10, 9, 6, 3, 13, 5, 6, 7, 10, 3, 20, 3, 6, 9, 6, 10, 16, 3, 6, 9, 13, 3, 20, 3, 9, 17, 6, 3, 16, 5, 10, 9, 9, 3, 15, 9, 13, 9, 6, 3, 30, 3, 6, 16, 7, 9, 20, 3, 9, 9, 19, 3, 22, 3, 6, 16, 9, 10, 19, 3, 16, 9, 6, 3, 30, 9, 6, 9, 13, 3, 33
Offset: 1
Keywords
Examples
a(6)=7 since the pairwise harmonic means of 6 with 2, 3, 6, 12, 18, 30 and 66 are 3, 4, 6, 8, 9, 10 and 11 respectively.
Links
- Ivan Neretin, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Maple
seq(nops(select(`<`,numtheory:-divisors(2*n^2),2*n)),n=1..100); # Robert Israel, Feb 07 2016
-
Mathematica
Count[Divisors[2 #^2], x_ /; x < 2 #] & /@ Range[90] (* Ivan Neretin, May 04 2015 *)
-
PARI
a(n) = {my(c=0); for(y=1, 2*n-1, if((y*n)%(2*n-y)==0, c++)); return(c);} \\ Stanislav Sykora, Feb 03 2016
Formula
a(n) >= min(n,3). - Stanislav Sykora, Feb 03 2016
a(2^n) = n+1, a(p^n) = 2n+1 if p>=3 is prime. - Benoit Cloitre, Nov 26 2023
Comments