OFFSET
1,2
COMMENTS
FORMULA
a(n) = floor(s*n), where s = -2 + sqrt(10).
MATHEMATICA
PROG
(Python)
from sympy import integer_nthroot
def A187396(n): return integer_nthroot(10*n**2, 2)[0]-2*n # Chai Wah Wu, Mar 17 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 09 2011
EXTENSIONS
Edited by Clark Kimberling, Mar 17 2021
STATUS
approved