OFFSET
1,3
EXAMPLE
a(3) = 2 because the sequences (2, 3, 15) and (2, 4, 6) are solutions since 1/2 + 1/5 + 1/20 = 1/2 + 1/6 + 1/12 = 3/4.
PROG
(PARI)
A340772(n, s=n/(n+1), a_min=0, sn=0) = {
if(s<=0, return(0));
if(n==1,
if((floor(1/s)==1/s) && (1/s-sn>a_min), return(1); , return(0); ),
\\ else
my(count);
for(a=max(a_min, floor(1/s)-sn)+1, floor(n/s)-sn, count+=A340772(n-1, s-1/(sn+a), a, sn+a); );
return(count);
);
};
vector(6, n, A340772(n))
CROSSREFS
KEYWORD
nonn,more
AUTHOR
François Marques, Jan 20 2021
STATUS
approved