login
Product of the sum of all the subsets of the numbers from 1 to n.
2

%I #5 Nov 21 2013 12:47:35

%S 1,6,2160,9144576000,47354185460054753280000000,

%T 18458571748581562066056556704775089466054740541440000000000000,

%U 47233748702462500435567511289038040021397635763497380756284093804903384444460824501772093090703929198069912961024000000000000000000000000000

%N Product of the sum of all the subsets of the numbers from 1 to n.

%e a(3) = 1 * 2 * 3 * (1+2) * (1+3) * (2+3) * (1+2+3) = 1*2*3*3*4*5*6 = 2160

%p 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:

%t Table[Times@@(Total[#]&/@Rest[Subsets[Range[n]]]),{n,8}] (* _Harvey P. Dale_, Feb 17 2011 *)

%K nonn

%O 1,2

%A Jonathan Ayres (jonathan.ayres(AT)ntlworld.com), Jan 06 2002

%E More terms from Francisco Salinas (franciscodesalinas(AT)hotmail.com), Jan 06 2002