OFFSET
0,3
COMMENTS
If r > 0 is even, then a((rm/2)^2+m) = r for all m >= 1 and a((r^2-2)^2/4 + (r+1)^3) = r.
If r is odd, then a((rm)^2+2m) = r for all m >= 1 and a(r^4 + r^3 + 5(r+1)^2/4) = r.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..10000
PROG
(Python)
from sympy import continued_fraction_periodic
def A276689(n):
x = continued_fraction_periodic(0, 1, n)
return min(x[1]) if len(x) > 1 else 0
CROSSREFS
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Sep 28 2016
STATUS
approved