OFFSET
1,1
COMMENTS
By necessity all terms are of the form 4m+3 (in A004767).
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
{k | A369054(k) > 0}.
PROG
(PARI) isA369251(n) = if(3!=(n%4), 0, my(v = [3, 3], ip = #v, r); while(1, r = (n-(v[1]*v[2])) / (v[1]+v[2]); if(r < v[2], ip--, ip = #v; if(1==denominator(r) && isprime(r), return(1))); if(!ip, return(0)); v[ip] = nextprime(1+v[ip]); for(i=1+ip, #v, v[i]=v[i-1])));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 22 2024
STATUS
approved