|
|
A185826
|
|
Sum of the next n natural numbers raised to the n-th power.
|
|
1
|
|
|
1, 25, 3375, 1336336, 1160290625, 1870414552161, 5026507568359375, 20882706457600000000, 126834469112674289266929, 1078732544346879404306640625, 12415028528548173886807771291871, 188031682201497672618081000000000000
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Write the natural numbers in groups, with group sizes incremented by one, each time: 1; 2,3; 4,5,6; 7,8,9,10; ... and add the numbers in each group, then take the i-th power for the i-th group to get the i-th entry in the sequence.
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
Module[{nn=15}, #[[1]]^#[[2]]&/@Thread[{Total/@TakeList[Range[(nn(nn+1))/2], Range[ nn]], Range[nn]}]] (* or *) Table[((n+n^3)/2)^n, {n, 20}] (* Harvey P. Dale, Apr 24 2022 *)
|
|
PROG
|
(Python)
num = 100
n = 0
a = range(num+1)
for i in range(1, num):
....sum = 0
....for j in range(1, i+1):
........sum = sum + (n+j)
....n = n + i
....a[i] = sum**i
|
|
CROSSREFS
|
A006003. The n-th entry in this sequence (starting from 1) is equal to the (n+1)-st entry of A006003 to the n-th power
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|