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!)
A236381 Smallest value of x such that x^2 + y^2 = P, where P is the product of the first n primes of the form 4k + 1, and 0 < x < y. 7
1, 1, 4, 2, 64, 59, 1342, 1076, 4268, 10739, 64387, 818998, 3226976, 26444853, 53155423, 1175849126, 13396689992, 2368807981, 907313696551, 483703442648, 2835669288809, 98713800566163 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
a(3) = 4 because the solutions to x^2 + y^2 = 5*13*17 are (x,y) = (23,24), (9,32), (4,33), (12,31) of which the smallest value of x is 4.
PROG
(PARI) prd(n) = my(q=3, t=1); for(k=1, n, until(q%4==1, q=nextprime(q+1)); t*=q); t; \\ A006278
a(n) = {my(t=prd(n), q=0); until(issquare(t-q^2), q++); q; } \\ Michel Marcus, Mar 05 2021
CROSSREFS
Sequence in context: A163176 A277306 A201444 * A335300 A201228 A010319
KEYWORD
nonn,more
AUTHOR
Colin Barker, Jan 24 2014
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 25 06:49 EDT 2024. Contains 371964 sequences. (Running on oeis4.)