A371625 The x-coordinate of the point (x,y) where x + y = n, x is an integer, and x/y is as close as possible to phi (by absolute difference).
0, 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 9, 9, 10, 10, 11, 12, 12, 13, 14, 14, 15, 15, 16, 17, 17, 18, 19, 19, 20, 20, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 27, 28, 28, 29, 30, 30, 31, 32, 32, 33, 33, 34, 35, 35, 36, 36, 37, 38, 38, 39, 40, 40, 41, 41, 42, 43
Offset: 1
Keywords
Examples
For n=5, the possibilities are (0,5), (1,4), (2,3), (3,2) and (4,1). Of those, 3/2 is the closest to phi, so a(5)=3.
Formula
a(n) = n - A371626(n).
a(n) = ceiling(n/phi) if floor(s(n)) + floor(n/phi) is even.
a(n) = floor(n/phi) if floor(s(n)) + floor(n/phi) is odd.
a(n) = ceiling(n/phi) - (floor(s(n))+floor(n/phi) mod 2).
a(n) = round(n/phi) + floor(s(n)) - floor(n/phi+1/2).
Comments