OFFSET
1,3
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
KEYWORD
nonn,more
AUTHOR
Colin Barker, Jan 24 2014
STATUS
approved