OFFSET
1,1
COMMENTS
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
David A. Corneth, PARI program
EXAMPLE
a(1) = 10 as the sum of reciprocals of {6, 10}, which is a subset of {3*prime(1), 5*prime(1)} = {6, 10} is 1/6 + 1/10 = 4/15 and the denominator is not divisible by prime(1) = 2. No such subset exists without a semiprime < 10.
a(5) = 143 as the sum of reciprocals of {22, 33, 55, 77, 143}, which is a subset of {2*prime(5), 3*prime(5), ..., 13*prime(5)} = {22, 33, 55, 77, 121, 143}, is 1/22 + 1/33 + 1/55 + 1/77 + 1/143 = 311/2730 the denominator 2730 is not divisible by prime(5) = 11.
PROG
(PARI) a(n)=my(p = prime(n), l = List()); forprime(q = 2, oo, if(q != p, listput(l, p*q), next); for(i = 1, #l, forvec(x = vector(i, j, [1, #l]), c = sum(j = 1, i, 1/l[x[j]]); if(denominator(c) % p != 0, return(p*q)); , 2)))
CROSSREFS
KEYWORD
nonn
AUTHOR
David A. Corneth, Jun 18 2026
STATUS
approved
