OFFSET
1,3
COMMENTS
LINKS
S. A. Shirali, A family portrait of primes -- a case study in discrimination, Math. Mag., Vol. 70, No. 4 (Oct. 1997), pp. 263-272.
EXAMPLE
For n=7, p=17 and a(7) = floor(sqrt(17)) + floor(sqrt(34)) + floor(sqrt(51)) + floor(sqrt(68)) = 4+5+7+8 = 24.
MATHEMATICA
Table[p = Prime[n]; Sum[Floor[Sqrt[i*p]], {i, Floor[p/4]}], {n, 100}] (* T. D. Noe, Nov 13 2013 *)
PROG
(PARI) a(n) = p = prime(n); sum(i=1, p\4, sqrtint(i*p));
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Nov 11 2013
STATUS
approved