login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A345690
For 1<=x<=n, 1<=y<=n, write gcd(x,y) = u*x+v*y with u,v minimal; a(n) = n^4*s, where s is the population variance of the values of |v|.
9
0, 3, 14, 48, 166, 324, 1078, 2172, 4760, 7204, 16508, 25479, 48376, 66016, 99650, 143600, 238914, 308115, 476038, 615239, 818300, 1024179, 1481652, 1804167, 2417654, 2918787, 3742442, 4535391, 6022574, 7025184, 9105478, 10784796, 12958370, 15000299, 18108116
OFFSET
1,2
COMMENTS
The factor n^4 is to ensure that a(n) is an integer.
A345433(n) = n^2*mu where mu is the mean of the values of |v|.
The population standard deviation sqrt(s) appears to grow linearly with n.
PROG
(Python)
from statistics import pvariance
from sympy.core.numbers import igcdex
def A345690(n): return pvariance(n**2*abs(v) for u, v, w in (igcdex(x, y) for x in range(1, n+1) for y in range(1, n+1)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Jun 24 2021
STATUS
approved