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!)
A289435 The arithmetic function v_3(n,3). 113

%I #24 Apr 24 2020 09:44:57

%S 1,0,2,2,3,2,4,2,5,4,6,4,7,6,8,6,9,6,10,6,11,8,12,10,13,8,14,10,15,10,

%T 16,12,17,14,18,12,19,12,20,14,21,14,22,18,23,16,24,16,25,18,26,18,27,

%U 22,28,18,29,20,30,20,31,20,32,26,33,22,34,24,35

%N The arithmetic function v_3(n,3).

%D J. Butterworth, Examining the arithmetic function v_g(n,h). Research Papers in Mathematics, B. Bajnok, ed., Gettysburg College, Vol. 8 (2008).

%H Bela Bajnok, <a href="https://arxiv.org/abs/1705.07444">Additive Combinatorics: A Menu of Research Problems</a>, arXiv:1705.07444 [math.NT], May 2017. See Table in Section 1.6.1.

%p a:= n-> n*max(seq((floor((d-1-igcd(d, 3))/3)+1)

%p /d, d=numtheory[divisors](n))):

%p seq(a(n), n=2..100); # _Alois P. Heinz_, Jul 07 2017

%t a[n_]:=n*Max[Table[(Floor[(d - 1 - GCD[d, 3])/3] + 1)/d, {d, Divisors[n]}]]; Table[a[n], {n, 2, 100}] (* _Indranil Ghosh_, Jul 08 2017 *)

%o (PARI)

%o v(g,n,h)={my(t=0);fordiv(n,d,t=max(t,((d-1-gcd(d,g))\h + 1)*(n/d)));t}

%o a(n)=v(3,n,3); \\ _Andrew Howroyd_, Jul 07 2017

%o (Python)

%o from sympy import divisors, floor, gcd

%o def a(n): return n*max((floor((d - 1 - gcd(d, 3))/3) + 1)/d for d in divisors(n))

%o print([a(n) for n in range(2, 101)]) # _Indranil Ghosh_, Jul 08 2017

%Y Cf. A211316 (equals v_1(n,3)).

%K nonn

%O 2,3

%A _N. J. A. Sloane_, Jul 06 2017

%E a(41)-a(70) from _Andrew Howroyd_, Jul 07 2017

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 7 02:00 EDT 2024. Contains 372298 sequences. (Running on oeis4.)