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