A067174 Product of the sum of all the subsets of the numbers from 1 to n.
1, 6, 2160, 9144576000, 47354185460054753280000000, 18458571748581562066056556704775089466054740541440000000000000, 47233748702462500435567511289038040021397635763497380756284093804903384444460824501772093090703929198069912961024000000000000000000000000000
Offset: 1
Keywords
Examples
a(3) = 1 * 2 * 3 * (1+2) * (1+3) * (2+3) * (1+2+3) = 1*2*3*3*4*5*6 = 2160
Programs
-
Maple
with(combinat,subsets): A067174 := proc(n) local S,ans,i: S := subsets([seq(i,i=1..n)]): ans := 1: S[nextvalue](): while not S[finished] do ans := ans*add(i,i=S[nextvalue]()) od: RETURN(ans): end:
-
Mathematica
Table[Times@@(Total[#]&/@Rest[Subsets[Range[n]]]),{n,8}] (* Harvey P. Dale, Feb 17 2011 *)
Extensions
More terms from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Jan 06 2002