This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A198383 #42 May 09 2025 00:33:56 %S A198383 1,2,4,5,10,10,20,22,37,40,80,72,144,158,278,283,566,548,1096,1120, %T A198383 2106,2162,4324,4210,8389,8584,16650,16772,33544,33194,66388,66968, %U A198383 131882,132690,265222,263607,527214,530138,1052078,1054254,2108508,2103282,4206564,4216760 %N A198383 a(n) = Sum_{k=1..n} 2^(n mod k). %C A198383 A more precise asymptotic formula is given in the link. %C A198383 From _David Morales Marciel_, Oct 19 2015: (Start) %C A198383 If n is prime then a(n)=2*a(n-1). %C A198383 It appears that for every (deficient, abundant)-pair of numbers (11+6x, 11+6x+1), a(11+6x) > a(11+6x+1). %C A198383 (End) %H A198383 Amiram Eldar, <a href="/A198383/b198383.txt">Table of n, a(n) for n = 1..1000</a> %H A198383 Benoit Cloitre, <a href="http://BCmathematics.monsite-orange.fr/Asymptotic%20sum%202%5E(n%20mod%20k).pdf">An asymptotic formula for sum_{k=1..n}x^(n mod k)</a> [broken link, <a href="/A198383/a198383.pdf">draft</a>] %F A198383 a(n) = 2^ceiling(n/2) + O(2^(n/3)). %F A198383 a(n) = 2*a(n-1) + A000079(n) - A130887(n). - _Ridouane Oudra_, May 03 2025 %t A198383 Table[Sum[2^Mod[n, k], {k, n}], {n, 44}] (* _Michael De Vlieger_, Oct 19 2015 *) %o A198383 (PARI) a(n) = sum(k=1, n, 2^(n%k)) %Y A198383 Cf. A198259, A000079, A130887. %K A198383 nonn %O A198383 1,2 %A A198383 _Benoit Cloitre_, Oct 24 2011