|
|
A289439
|
|
The arithmetic function v_1(n,5).
|
|
113
|
|
|
1, 1, 2, 1, 3, 2, 4, 3, 5, 2, 6, 3, 7, 5, 8, 4, 9, 4, 10, 7, 11, 5, 12, 5, 13, 9, 14, 6, 15, 6, 16, 11, 17, 10, 18, 8, 19, 13, 20, 8, 21, 9, 22, 15, 23, 10, 24, 14, 25, 17, 26, 11, 27, 11, 28, 19, 29, 12, 30, 12, 31, 21, 32, 15, 33, 14, 34, 23, 35
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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
|
|
|
MAPLE
|
a:= n-> n*max(seq((floor((d-2)/5)+1)/d, d=numtheory[divisors](n))):
|
|
MATHEMATICA
|
a[n_]:=n*Max[Table[(Floor[(d - 2)/5] + 1)/d, {d, Divisors[n]}]]; Table[a[n], {n, 2, 100}] (* Indranil Ghosh, Jul 08 2017 *)
|
|
PROG
|
(PARI)
v(g, n, h)={my(t=0); fordiv(n, d, t=max(t, ((d-1-gcd(d, g))\h + 1)*(n/d))); t}
(Python)
from sympy import divisors, floor
def a(n): return int(n*max(int(floor((d - 2)/5) + 1)/d for d in divisors(n)))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|