OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..2302 (terms 1..500 from Seiichi Manyama)
EXAMPLE
a(2) = 1 + 2 + 4 + 8 = 15.
a(3) = 1 + 2 + 3 + 4 + 6 + 8 + 9 + 12 + 18 + 27 = 90.
MATHEMATICA
a[n_] := Table[i j k, {i, n}, {j, n}, {k, n}] // Flatten // Union // Total;
Array[a, 35] (* Jean-François Alcover, Nov 25 2020 *)
PROG
(Python)
def aupton(terms):
alst, s, pset = [], 0, set()
for n in range(1, terms):
for i in range(1, n+1):
for j in range(i, n+1):
p = i*j*n # k = n
if p not in pset:
pset.add(p)
s += p
alst.append(s)
return alst
print(aupton(36)) # Michael S. Branicky, Jan 15 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jan 11 2019
STATUS
approved