login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065795 Number of subsets of {1,2,...,n} that contain the average of their elements. 0
1, 2, 4, 6, 10, 16, 26, 42, 72, 124, 218, 390, 706, 1292, 2388, 4436, 8292, 15578, 29376, 55592, 105532, 200858, 383220, 732756, 1403848, 2694404, 5179938, 9973430, 19229826, 37125562, 71762396, 138871260, 269021848, 521666984 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

FORMULA

a(n) = 1/2*sum_{i=1..n} (f(i) - 1) where f(i) = 1/n * sum_{d divides n and d is odd} 2^(n/d) * phi(d).

EXAMPLE

a(4)=6, since {1}, {2}, {3}, {4}, {1,2,3} and {2,3,4} contain their averages.

MATHEMATICA

Table[ Sum[a = Select[Divisors[i], OddQ[ # ] &]; Apply[ Plus, 2^(i/a)*EulerPhi[a]]/i, {i, 1, n}]/2, {n, 1, 34}]

CROSSREFS

Equals (n+A051293)/2.

Sequence in context: A094985 A128588 A023613 * A000801 A080105 A023557

Adjacent sequences:  A065792 A065793 A065794 * A065796 A065797 A065798

KEYWORD

nonn

AUTHOR

John W. Layman (layman(AT)math.vt.edu), Dec 05 2001

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 15 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 13:49 EST 2012. Contains 205810 sequences.