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.
%I A362936 #13 Aug 29 2023 10:11:13 %S A362936 0,0,2,4,8,8,14,20,28,36,46,52,64,76,86,100,116,128,146,160,180,200, %T A362936 222,240,264,288,314,336,364,384,414,444,476,508,538,568,604,640,678, %U A362936 712,752,784,826,868,904,948,994,1036,1084,1132,1182,1232,1284,1332,1386,1436,1492,1548,1606,1652,1712 %N A362936 a(n) = A000982(n) - A362931(n). %C A362936 a(n) = (number of pairs (i,j) in [1..n] X [1..n] with integral arithmetic mean) - (number of pairs (i,j) in [1..n] X [1..n] with integral harmonic mean). %H A362936 Alois P. Heinz, <a href="/A362936/b362936.txt">Table of n, a(n) for n = 1..10000</a> %o A362936 (Python) %o A362936 def A362936(n): return ((n-1)**2>>1)-(sum(1 for x in range(1,n+1) for y in range(1,x) if not (x*y<<1)%(x+y))<<1) # _Chai Wah Wu_, Aug 29 2023 %Y A362936 Cf. A000982, A132188, A362931-A932937. %K A362936 nonn %O A362936 1,3 %A A362936 _N. J. A. Sloane_, Aug 28 2023