login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A107848 Number of subsets of the n-th roots of unity summing to a real number. 4

%I #3 Mar 30 2012 17:22:40

%S 2,4,4,8,8,24,16,48,40,144,64,336,128,864,416,1728,512,8304,1024,

%T 10656,4032,31104,4096,116256,9248,186624,40000,374976,32768,3537024,

%U 65536,2239488

%N Number of subsets of the n-th roots of unity summing to a real number.

%H T. D. Noe, <a href="http://www.sspectra.com/math/RootSums.html">Sums of Roots of Unity Plots</a>

%F For prime n, a(n)=2^((n+1)/2).

%t Needs["DiscreteMath`Combinatorica`"]; Table[Plus@@Table[Count[(KSubsets[Range[n], k]), q_List/;Im[Chop[Plus@@(E^(2.*Pi*I*q/n))]]==0], {k, 0, n}], {n, 20}]

%Y Cf. A103314 (number of subsets of the n-th roots of unity summing to zero).

%K nonn

%O 1,1

%A _T. D. Noe_, May 25 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 13:38 EDT 2024. Contains 371970 sequences. (Running on oeis4.)