OFFSET
0,3
COMMENTS
See Connell (1959) for further information.
REFERENCES
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
T. D. Noe, Table of n, a(n) for n = 0..10000
Ian G. Connell, A generalization of Wythoff's game, Canad. Math. Bull. 2 (1959) 181-190.
Eric Weisstein's World of Mathematics, Hofstadter G-Sequence
FORMULA
a(n) = floor( (n+1/2)*(sqrt(5)-1) ). - R. J. Mathar, Feb 14 2011
a(n) = A005206(2*n). - Peter Bala, Aug 09 2022
a(n) = A001966(n)-4*n-2. - Chai Wah Wu, Aug 25 2022
MATHEMATICA
Table[Floor[(n + 1/2)*(Sqrt[5] - 1)], {n, 0, 100}] (* T. D. Noe, Aug 17 2012 *)
PROG
(Python)
from math import isqrt
def A001965(n): return ((m:=(n<<1)+1)+isqrt(5*m**2)>>1)-m # Chai Wah Wu, Aug 25 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Edited by Hugo Pfoertner, Dec 27 2021
STATUS
approved