OFFSET
1,5
COMMENTS
Each term is equal to or one greater than the previous term.
The average run length approaches 1+phi.
a(n) = x = either ceiling or floor of n/phi^2, according as which minimizes abs(x/(n-x) - phi).
The 4 following statements are equivalent for any positive integer n and any function f(x) such that for all real x, x-1<f(x)<x+1 and f(x) is integral:
a(n) != A371626(n);
a(n) != n-f(n/phi) xor A371626(n) != n-f(n/phi);
FORMULA
a(n)=n-A371628(n)
EXAMPLE
For n=4, the possibilities are (0,4), (1,3), (2,2), and (3,1). 1/3 is the closest to 1/phi out of them so a(4)=1
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Colin Linzer, Mar 29 2024
STATUS
approved