OFFSET
1,1
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..500
Th. Stoll, On Families of Nonlinear Recurrences Related to Digits, Journal of Integer Sequences, Vol. 8 (2005), Article 05.3.2.
Eric Weisstein's World of Mathematics, Graham-Pollak Sequence
FORMULA
a(n) = floor(sqrt(2) * (a(n-1) + 1/2)).
MATHEMATICA
NestList[Floor[Sqrt[2](#+1/2)]&, 5, 40] (* Harvey P. Dale, Feb 24 2018 *)
PROG
(PARI) first(n)=my(v=vector(n)); v[1]=5; for(k=2, n, v[k]=sqrtint(2*(v[k-1]+1)*v[k-1])); v \\ Charles R Greathouse IV, Jan 23 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Jan 18 2004
STATUS
approved