OFFSET
0,4
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..1000 (terms 0..200 from T. D. Noe)
EXAMPLE
a(3) = 2 (0 and 6 being the only products) and a(4) = 5 (with products 0, 6, 8, 12 and 24).
MATHEMATICA
nn=50; prod=Table[0, {1+nn^3}]; t=Table[Do[prod[[1+i*j*k]]=1, {i, 0, n}, {j, i+1, n}, {k, j+1, n}]; Count[Take[prod, 1+n^3], 1], {n, 0, nn}] (* T. D. Noe, Jan 16 2007 *)
PROG
(Haskell)
import Data.List (nub)
a027429 n = length $ nub [i*j*k | k<-[2..n], j<-[1..k-1], i<-[0..j-1]]
-- Reinhard Zumkeller, Jan 01 2012
(Python)
from itertools import combinations as C
def a(n): return len(set(i*j*k for i, j, k in C(range(n+1), 3)))
print([a(n) for n in range(50)]) # Michael S. Branicky, May 28 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected by T. D. Noe, Jan 16 2007
STATUS
approved