[go: up one dir, main page]

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!)
Revision History for A345430 (Underlined text is an addition; strikethrough text is a deletion.)

Showing all changes.
A345430 For 1<=x<=n, 1<=y<=n, with gcd(x,y)=1, write 1 = gcd(x,y) = u*x+v*y with u,v minimal; a(n) = sum of the values of |v|.
(history; published version)
#10 by Jon E. Schoenfield at Fri Jun 25 00:32:06 EDT 2021
STATUS

editing

approved

#9 by Jon E. Schoenfield at Fri Jun 25 00:32:05 EDT 2021
COMMENTS

Minimal means minimize u^2+v^2. We follow Maple, PariPARI, etc, ., in setting u=0 and v=1 when x=y.

STATUS

approved

editing

#8 by N. J. A. Sloane at Tue Jun 22 16:33:20 EDT 2021
STATUS

proposed

approved

#7 by Chai Wah Wu at Tue Jun 22 15:28:20 EDT 2021
STATUS

editing

proposed

#6 by Chai Wah Wu at Tue Jun 22 15:28:14 EDT 2021
PROG

(Python)

from sympy.core.numbers import igcdex

def A345430(n): return sum(abs(v) for u, v, w in (igcdex(x, y) for x in range(1, n+1) for y in range(1, n+1)) if w == 1) # Chai Wah Wu, Jun 22 2021

STATUS

approved

editing

#5 by N. J. A. Sloane at Tue Jun 22 15:05:26 EDT 2021
STATUS

editing

approved

#4 by N. J. A. Sloane at Tue Jun 22 15:05:23 EDT 2021
NAME

qqqqqv

For 1<=x<=n, 1<=y<=n, with gcd(x,y)=1, write 1 = gcd(x,y) = u*x+v*y with u,v minimal; a(n) = sum of the values of |v|.

COMMENTS

Minimal means minimize u^2+v^2. We follow Maple, Pari, etc, in setting u=0 and v=1 when x=y.

CROSSREFS

Cf. A345415-A345434.

STATUS

approved

editing

#3 by N. J. A. Sloane at Tue Jun 22 15:02:21 EDT 2021
STATUS

editing

approved

#2 by N. J. A. Sloane at Tue Jun 22 15:02:19 EDT 2021
NAME

allocated for N. J. A. Sloane

qqqqqv

DATA

1, 2, 5, 8, 17, 20, 38, 50, 71, 83, 128, 146, 209, 236, 278, 326, 434, 473, 608, 668, 758, 833, 1031, 1103, 1292, 1400, 1583, 1709, 2024, 2120, 2480, 2672, 2912, 3104, 3410, 3572, 4085, 4328, 4670, 4910, 5540, 5738, 6431, 6761, 7163, 7526, 8354, 8642, 9416, 9788, 10388

OFFSET

1,2

KEYWORD

allocated

nonn

AUTHOR

N. J. A. Sloane, Jun 22 2021

STATUS

approved

editing

#1 by N. J. A. Sloane at Fri Jun 18 23:16:48 EDT 2021
NAME

allocated for N. J. A. Sloane

KEYWORD

allocated

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 August 29 18:55 EDT 2024. Contains 375518 sequences. (Running on oeis4.)