OFFSET
1,3
COMMENTS
The products must contain at least two integers. - Sean A. Irvine, Oct 13 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Sean A. Irvine, Java program (github)
EXAMPLE
a(6) = 7 because the possible products are 1*2, 1*3, 1*4, 1*5, 1*6, 2*3, and 1*2*3. - Sean A. Irvine, Oct 13 2019
MAPLE
N:= 200: # for a(1)..a(N)
with(queue):Q:= new():
V:= Vector(N):
for i from 1 to N/2 do
for j from i+1 to N while i*j <= N do
p:= i*j;
V[p]:= V[p]+1;
if p*(j+1) <= N then enqueue(Q, [i, j]) fi
od od:
while not empty(Q) do
s:= dequeue(Q);
p:= convert(s, `*`);
for k from s[-1]+1 to N while p*k <= N do
pp:= p*k;
V[pp]:= V[pp]+1;
if pp*(k+1) <= N then enqueue(Q, [op(s), k]) fi
od;
od:
ListTools:-PartialSums(convert(V, list)); # Robert Israel, Dec 09 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved