OFFSET
1,3
COMMENTS
The function a(n) is a measure of how many times n rounds up (assigned value +1), down (assigned value -1), or not at all (assigned value +0) when divided by incremental prime numbers (see below example.)
EXAMPLE
For n = 4, a(4) = 0 + (-1) + 1 + 1 = 2.
PROG
(PARI)
g(t) = {if(t==0, 0, if(t<1/2, -1, 1))}
a(n) = {sum(i=1, primepi(2*n), g(frac(n/prime(i))))} \\ Andrew Howroyd, Mar 20 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Christoph B. Kassir, Mar 19 2021
STATUS
approved