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!)
A345434 For 1<=x<=n, 1<=y<=n, write gcd(x,y) = u*x+v*y with u,v minimal; a(n) = sum of the values of u^2+v^2. 7
1, 4, 11, 20, 47, 62, 135, 196, 313, 394, 685, 838, 1317, 1578, 1991, 2484, 3573, 4084, 5595, 6410, 7621, 8792, 11505, 12710, 15539, 17536, 20619, 23018, 28417, 30650, 37215, 41308, 46405, 51072, 57607, 61596, 72927, 79670, 88055, 94618, 109799, 116312, 134067, 143952, 155287 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Minimal means minimize u^2+v^2. We follow Maple, PARI, etc., in setting u=0 and v=1 when x=y.
LINKS
PROG
(Python)
from sympy.core.numbers import igcdex
def A345434(n): return sum(u**2+v**2 for u, v, w in (igcdex(x, y) for x in range(1, n+1) for y in range(1, n+1))) # Chai Wah Wu, Jun 22 2021
CROSSREFS
Sequence in context: A008262 A075099 A240784 * A297961 A240155 A161975
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 22 2021
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 April 23 15:20 EDT 2024. Contains 371916 sequences. (Running on oeis4.)