login
A094138
Values x+y of smallest pair (x,y) satisfying x^2 - 2*y^2=-+d, where d=A058529(n).
5
2, 3, 4, 6, 5, 8, 8, 6, 7, 11, 10, 10, 8, 13, 13, 11, 9, 14, 16, 10, 14, 13, 18, 11, 16, 16, 14, 19, 12, 21, 17, 20, 19, 13, 20, 23, 18, 16, 14, 21, 21, 20, 19, 17, 15, 22, 25, 25, 23, 22, 16, 28, 23, 28, 21, 26, 19, 17, 25, 24, 24, 22, 20, 18, 29, 25, 30, 28, 27, 23, 33, 28, 19
OFFSET
1,1
COMMENTS
Here (x,y) is considered smaller than (u,v) iff x+y < u+v or (x+y = u+v and x < u).
EXAMPLE
A058529(14) = 103; (5, 8), (11, 3), (17, 14), (21, 13), ... are pairs satisfying x^2 - 2*y^2 = -+103; (5, 8) is the smallest one, so a(14) = 5+8 = 13.
PROG
(PARI) {for(n=1, 690, fac=factor(n); v=vector(matsize(fac)[1], j, fac[j, 1])%8; b=1; for(k=1, length(v), if(v[k]>1&&v[k]<7, b=0)); if(b>0, print1(sp(n)[3], ", ")))}. For sp(n) see A094136.
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, May 04 2004
EXTENSIONS
Edited, corrected and extended by Klaus Brockhaus May 31 2004
STATUS
approved