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 A178143 #26 Dec 12 2023 07:41:31 %S A178143 0,4,9,4,0,13,0,4,9,4,0,13,0,4,9,4,0,13,0,4,9,4,0,13,0,4,9,4,0,13,0,4, %T A178143 9,4,0,13,0,4,9,4,0,13,0,4,9,4,0,13,0,4,9,4,0,13,0,4,9,4,0,13,0,4,9,4, %U A178143 0,13,0,4,9,4,0,13,0,4,9,4,0,13,0,4,9,4 %N A178143 Sum of squares d^2 over the divisors d=2 and/or d=3 of n. %C A178143 Period 6: repeat [0, 4, 9, 4, 0, 13]. - _Wesley Ivan Hurt_, Jul 05 2016 %H A178143 Vladimir Shevelev,<a href="http://arXiv.org/abs/0903.1743">A recursion for divisor function over divisors belonging to a prescribed finite sequence of positive integers and a solution of the Lahiri problem for divisor function sigma_x(n)</a>, arXiv:0903.1743 [math.NT], 2009. %H A178143 <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (-1,0,1,1). %F A178143 a(n) = Sum_{d|n, d=2 and/or d=3} d^2. %F A178143 a(n) = -a(n-1) + a(n-3) + a(n-4) for n>4. %F A178143 G.f.: x*(4+13*x+13*x^2) / ( (1-x)*(1+x)*(1+x+x^2) ). %F A178143 a(n+6) = a(n). %F A178143 a(n) = A010675(n) + A021115(n). [_R. J. Mathar_, May 28 2010] %F A178143 a(n) = 4 * (1 + floor(n/2) - ceiling(n/2)) + 9 * (1 + floor(n/3) - ceiling(n/3)). - _Wesley Ivan Hurt_, May 20 2013 %F A178143 a(n) = 5 + 2*cos(n*Pi) + 6*cos(2*n*Pi/3). - _Wesley Ivan Hurt_, Jul 05 2016 %e A178143 a(1)=0, a(2)=2^2=4 since 2|2, a(3)=3^2=9 since 3|3, a(4)=2^2=4 since 2|4. %p A178143 seq(op([0, 4, 9, 4, 0, 13]), n=1..30); # _Wesley Ivan Hurt_, Jul 05 2016 %t A178143 PadRight[{}, 100, {0, 4, 9, 4, 0, 13}] (* _Wesley Ivan Hurt_, Jul 05 2016 *) %o A178143 (PARI) a(n)=[13,0,4,9,4,0][n%6+1] \\ _Charles R Greathouse IV_, May 21 2013 %o A178143 (Magma) &cat [[0, 4, 9, 4, 0, 13]^^20]; // _Wesley Ivan Hurt_, Jul 05 2016 %Y A178143 Cf. A010675, A021115, A098002, A178142. %K A178143 nonn,easy,less %O A178143 1,2 %A A178143 _Vladimir Shevelev_, May 21 2010 %E A178143 Replaced recurrence by a shorter one; added keyword:less - _R. J. Mathar_, May 28 2010