OFFSET
1,2
COMMENTS
A more precise asymptotic formula is given in the link.
From David Morales Marciel, Oct 19 2015: (Start)
If n is prime then a(n)=2*a(n-1).
It appears that for every (deficient, abundant)-pair of numbers (11+6x, 11+6x+1), a(11+6x) > a(11+6x+1).
(End)
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
B. Cloitre, An asymptotic formula for sum_{k=1..n}x^(n mod k) [broken link, draft]
FORMULA
a(n) = 2^ceiling(n/2) + O(2^(n/3)).
MATHEMATICA
Table[Sum[2^Mod[n, k], {k, n}], {n, 44}] (* Michael De Vlieger, Oct 19 2015 *)
PROG
(PARI) a(n) = sum(k=1, n, 2^(n%k))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Oct 24 2011
STATUS
approved