OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
EXAMPLE
a(5) = 1 + 2*3 + 4*5 = 27;
a(6) = 1 + 2*3 + 4*5*6 = 127;
a(7) = 1 + 2*3 + 4*5*6 + 7 = 134.
PROG
(Python)
for n in range(55):
sum = 0
i = k = 1
while i<=n:
product = 1
for x in range(k):
product *= i
i += 1
if i>n: break
sum += product
k += 1
print(str(sum), end=', ')
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Jul 07 2013
STATUS
approved