cp's OEIS Frontend

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.

A103116 a(n) = Sum_{i=1..n} (n-i+1)*phi(i).

This page as a plain text file.
%I A103116 #23 Dec 09 2022 05:58:08
%S A103116 0,1,3,7,13,23,35,53,75,103,135,177,223,281,345,417,497,593,695,815,
%T A103116 943,1083,1233,1405,1585,1785,1997,2227,2469,2739,3017,3325,3649,3993,
%U A103116 4353,4737,5133,5565,6015,6489,6979,7509,8051,8635,9239,9867,10517,11213,11925
%N A103116 a(n) = Sum_{i=1..n} (n-i+1)*phi(i).
%H A103116 Alois P. Heinz, <a href="/A103116/b103116.txt">Table of n, a(n) for n = 0..10000</a>
%F A103116 a(n) = A005598(n) - 1.
%F A103116 G.f.: (1/(1 - x)^2)*Sum_{k>=1} mu(k)*x^k/(1 - x^k)^2. - _Ilya Gutkovskiy_, Mar 16 2017
%p A103116 b:= proc(n) option remember; `if`(n<1, [0$2],
%p A103116       (p-> p+[numtheory[phi](n), p[1]])(b(n-1)))
%p A103116     end:
%p A103116 a:= n-> b(n+1)[2]:
%p A103116 seq(a(n), n=0..55);  # _Alois P. Heinz_, Oct 07 2021
%t A103116 Accumulate@Accumulate@EulerPhi@Range[0,100] (* _Vladimir Joseph Stephan Orlovsky_, Apr 21 2011 *)
%o A103116 (Magma)
%o A103116 A103116:= func< n | n eq 0 select 0 else (&+[(n-j+1)*EulerPhi(j): j in [1..n]]) >;
%o A103116 [A103116(n): n in [0..60]]; // _G. C. Greubel_, Dec 08 2022
%o A103116 (SageMath)
%o A103116 @CachedFunction
%o A103116 def A103116(n): return sum( (n-j+1)*euler_phi(j) for j in range(1, n+1) )
%o A103116 [A103116(n) for n in range(61)] # _G. C. Greubel_, Dec 08 2022
%Y A103116 Cf. A000010, A005598.
%K A103116 nonn
%O A103116 0,3
%A A103116 _N. J. A. Sloane_, Apr 04 2007