OFFSET
0,2
COMMENTS
Let f(1)=1, f(2)=q and f(k+2) = f(k+1)+f(k)-n; a(n) is the smallest positive integer q such that f(k) -> infinity as k -> infinity. - Benoit Cloitre, Aug 04 2002
LINKS
J. H. Conway and N. J. A. Sloane, Notes on the Para-Fibonacci and related sequences
FORMULA
For n>0, a(n) = floor((n-1)*phi) + 2, where phi=(1+sqrt(5))/2.
Recurrences: a(n+1) = a(n)+(3 + sign(phi*n-a(n)))/2 for n>=0. Also a(n+1) = a(n) + 1 + A005614(n-2) for n>=2. - Benoit Cloitre, Aug 04 2002
PROG
(Python)
from math import isqrt
def A026355(n): return (n-1+isqrt(5*(n-1)**2)>>1)+2 if n else 1 # Chai Wah Wu, Aug 25 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved