The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A103116 a(n) = Sum_{i=1..n} (n-i+1)*phi(i). 4
0, 1, 3, 7, 13, 23, 35, 53, 75, 103, 135, 177, 223, 281, 345, 417, 497, 593, 695, 815, 943, 1083, 1233, 1405, 1585, 1785, 1997, 2227, 2469, 2739, 3017, 3325, 3649, 3993, 4353, 4737, 5133, 5565, 6015, 6489, 6979, 7509, 8051, 8635, 9239, 9867, 10517, 11213, 11925 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = A005598(n) - 1.
G.f.: (1/(1 - x)^2)*Sum_{k>=1} mu(k)*x^k/(1 - x^k)^2. - Ilya Gutkovskiy, Mar 16 2017
MAPLE
b:= proc(n) option remember; `if`(n<1, [0$2],
(p-> p+[numtheory[phi](n), p[1]])(b(n-1)))
end:
a:= n-> b(n+1)[2]:
seq(a(n), n=0..55); # Alois P. Heinz, Oct 07 2021
MATHEMATICA
Accumulate@Accumulate@EulerPhi@Range[0, 100] (* Vladimir Joseph Stephan Orlovsky, Apr 21 2011 *)
PROG
(Magma)
A103116:= func< n | n eq 0 select 0 else (&+[(n-j+1)*EulerPhi(j): j in [1..n]]) >;
[A103116(n): n in [0..60]]; // G. C. Greubel, Dec 08 2022
(SageMath)
@CachedFunction
def A103116(n): return sum( (n-j+1)*euler_phi(j) for j in range(1, n+1) )
[A103116(n) for n in range(61)] # G. C. Greubel, Dec 08 2022
CROSSREFS
Sequence in context: A209407 A124129 A101301 * A303853 A075321 A258030
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 04 2007
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 May 13 08:41 EDT 2024. Contains 372498 sequences. (Running on oeis4.)