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!)
A278049 a(n) = 3*(Sum_{k=1..n} phi(k)) - 1, where phi = A000010. 1

%I #22 Mar 26 2021 08:42:28

%S 2,5,11,17,29,35,53,65,83,95,125,137,173,191,215,239,287,305,359,383,

%T 419,449,515,539,599,635,689,725,809,833,923,971,1031,1079,1151,1187,

%U 1295,1349,1421,1469,1589,1625,1751,1811,1883,1949,2087,2135,2261,2321,2417,2489,2645,2699,2819,2891,2999

%N a(n) = 3*(Sum_{k=1..n} phi(k)) - 1, where phi = A000010.

%H Seiichi Manyama, <a href="/A278049/b278049.txt">Table of n, a(n) for n = 1..10000</a>

%H J. Lehner and M. Newman, <a href="http://matwbn.icm.edu.pl/ksiazki/aa/aa15/aa15114.pdf">Sums involving Farey fractions</a>, Acta Arithmetica 15.2 (1969): 181-187. See Eq. (19).

%F G.f.: (1/(1 - x)) * (-x + 3 * Sum_{k>=1} mu(k) * x^k / (1 - x^k)^2). - _Ilya Gutkovskiy_, Feb 14 2020

%p with(numtheory);

%p f:=n->3*add(phi(r),r=1..n)-1;

%p [seq(f(r),r=1..50)];

%t Table[3 Sum[EulerPhi@ k, {k, n}] - 1, {n, 57}] (* _Michael De Vlieger_, Dec 16 2016 *)

%o (Python)

%o from functools import lru_cache

%o @lru_cache(maxsize=None)

%o def A278049(n): # based on second formula in A018805

%o if n == 0:

%o return -1

%o c, j = 0, 2

%o k1 = n//j

%o while k1 > 1:

%o j2 = n//k1 + 1

%o c += (j2-j)*(2*A278049(k1)-1)//3

%o j, k1 = j2, n//j2

%o return 3*(n*(n-1)-c+j)//2 - 1 # _Chai Wah Wu_, Mar 25 2021

%Y Cf. A000010, A002088.

%Y Cf. m*(Sum_{k=1..n} phi(k)) - 1: A015614 (m=1), A018805 (m=2), this sequence (m=3).

%K nonn

%O 1,1

%A _N. J. A. Sloane_, Nov 22 2016

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 April 18 12:50 EDT 2024. Contains 371780 sequences. (Running on oeis4.)