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!)
A224840 Divisor sum of the arithmetic function A085945(n). 1
1, 3, 6, 14, 27, 61, 117, 250, 494, 1012, 2007, 4088, 8112, 16357, 32635, 65493, 130779, 262115, 523710, 1048502, 2096110, 4194124, 8386419, 16777182, 33550085, 67108507, 134209495, 268434899, 536853987, 1073741664, 2147449815, 4294966187, 8589868975, 17179866799 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Also the number of subsets A of {1, 2, 3, ..., n} such that gcd(A) divides n.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..3321
P. Pongsriiam, A remark on relative prime sets, Integers 13 (2013), A49.
FORMULA
a(n) = sum{d | n} sum_{k <= d} mu(k)*(2^floor(n/k) - 1) where mu is the Moebius function.
PROG
(PARI) A085945(n)=sum(k=1, n, moebius(k)*(2^(n\k)-1))
a(n)=sumdiv(n, d, A085945(d)) \\ Charles R Greathouse IV, Sep 19 2013
(PARI) a(n)=my(v=vector(n, i, i)); sum(i=1, 2^n-1, n%gcd(vecextract(v, i))==0) \\ Charles R Greathouse IV, Sep 19 2013
CROSSREFS
Cf. A038199, A027375, Divisor sums of A085945.
Sequence in context: A030012 A001970 A006951 * A356804 A345334 A354294
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(19)-a(34) from Charles R Greathouse IV, Sep 19 2013
STATUS
approved

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 June 27 20:20 EDT 2024. Contains 373753 sequences. (Running on oeis4.)