OFFSET
2,3
REFERENCES
J. Butterworth, Examining the arithmetic function v_g(n,h). Research Papers in Mathematics, B. Bajnok, ed., Gettysburg College, Vol. 8 (2008).
LINKS
Robert Israel, Table of n, a(n) for n = 2..10000
Bela Bajnok, Additive Combinatorics: A Menu of Research Problems, arXiv:1705.07444 [math.NT], May 2017. See Table in Section 1.6.1.
FORMULA
For n >= 3, f(prime(n)) = A024698(n-1). - Robert Israel, Aug 16 2017
MAPLE
f:= n -> max(map(t -> (floor((t - 1 - igcd(t, 3))/4) + 1)*n/t, numtheory:-divisors(n))):
map(f, [$2..100]); # Robert Israel, Aug 16 2017
MATHEMATICA
v[g_, n_, h_] := (d = Divisors[n]; Max[(Floor[(d - 1 - GCD[d, g])/h] + 1)*n/d]); Table[v[3, n, 4], {n, 2, 70}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Price, Aug 13 2017
STATUS
approved