OFFSET
1,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
PROG
(Python)
from sympy import sqrt, divisors, primefactors
import math
def a010052(n): return 1 if n<1 else int(math.floor(sqrt(n))) - int(math.floor(sqrt(n - 1)))
def a286473(n): return 1 if n==1 else 4*divisors(n)[-2] + (min(primefactors(n))%4)
def a(n): return 2*a286473(n) + a010052(n) # Indranil Ghosh, May 14 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 13 2017
STATUS
approved