OFFSET
1,3
COMMENTS
a(n) = 0 if and only if n = 1 or 2*n - 1 is in A002145.
EXAMPLE
a(5) = 5 because 2/9 = 1/5 + 1/45.
PROG
(PARI) print1(0, ", "); forstep(n=3, 141, 2, f=2/n; y=0; if(!(isprime(n)&&Mod(n, 4)==3), y=2*floor((n+1)/4)+1; until(y==n, if(numerator(f-1/y)==1, break); y=y+2)); print1(y, ", "));
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Mar 13 2014
STATUS
approved