cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A179876 Numbers h such that h and h-1 have same antiharmonic mean of the numbers k < h such that gcd(k, h) = 1.

This page as a plain text file.
%I A179876 #21 Mar 06 2021 06:24:25
%S A179876 2,7,11,23,47,59,66,70,78,83,107,130,167,179,186,195,211,222,227,238,
%T A179876 255,263,266,310,322,331,347,359,366,383,399,418,438,455,463,467,470,
%U A179876 474,479,483,494,498,503
%N A179876 Numbers h such that h and h-1 have same antiharmonic mean of the numbers k < h such that gcd(k, h) = 1.
%C A179876 Corresponding values of numbers h-1 see A179875.
%C A179876 Numbers h such that A175505(h) = A175505(h-1).
%C A179876 Numbers h such that A175506(h) = A175506(h-1).
%C A179876 Antiharmonic mean B(h) of numbers k such that gcd(k, h) = 1 for numbers h >= 1 and k < h = A053818(n) / A023896(n) = A175505(h) / A175506(h).
%H A179876 Amiram Eldar, <a href="/A179876/b179876.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..2047 from R. J. Mathar)
%e A179876 For n=3: a(3) = 11; B(11) = A175505(11) / A175506(11) = 7, B(10) = A175505(10) / A175506(10) = 7.
%p A179876 antiHMeanGcd := proc(h)
%p A179876         option remember;
%p A179876         local a023896,a053818,k ;
%p A179876         a023896 := 0 ;
%p A179876         a053818 := 0 ;
%p A179876         for k from 1 to h do
%p A179876                 if igcd(k,h) = 1 then
%p A179876                         a023896 := a023896+k ;
%p A179876                         a053818 := a053818+k^2 ;
%p A179876                 end if;
%p A179876         end do:
%p A179876         a053818/a023896 ;
%p A179876 end proc:
%p A179876 n := 1:
%p A179876 for h from 2 do
%p A179876         if antiHMeanGcd(h) = antiHMeanGcd(h-1) then
%p A179876                 printf("%d %d\n",n,h) ;
%p A179876                 n := n+1 ;
%p A179876         end if;
%p A179876 end do: # _R. J. Mathar_, Sep 26 2013
%t A179876 hmax = 1000;
%t A179876 antiHMeanGcd[h_] := antiHMeanGcd[h] = Module[{num = 0, den = 0, k}, For[k = 1, k <= h, k++, If[GCD[k, h] == 1, den += k; num += k^2]]; num/den];
%t A179876 Reap[n = 1; For[h = 2, h <= hmax, h++, If[antiHMeanGcd[h] == antiHMeanGcd[h - 1], Sow[h]; n++]]][[2, 1]] (* _Jean-François Alcover_, Mar 23 2020, after _R. J. Mathar_ *)
%Y A179876 Cf. A179871-A179880, A179882-A179887, A179890, A179891.
%K A179876 nonn
%O A179876 1,1
%A A179876 _Jaroslav Krizek_, Jul 30 2010, Jul 31 2010