OFFSET
1
COMMENTS
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
FORMULA
a(n)=[nr+2r]-[nr]-[2r], where r=1/sqrt(2).
MATHEMATICA
PROG
(Python)
from __future__ import division
from gmpy2 import isqrt
def A188374(n):
return int(isqrt((n+2)**2//2)-isqrt(n**2//2)) - 1 # Chai Wah Wu, Oct 08 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 29 2011
STATUS
approved