OFFSET
1,2
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
A. Fraenkel and C. Kimberling, Generalized Wythoff arrays, shuffles and interspersions, Discrete Mathematics 126 (1994) 137-149.
FORMULA
From Benoit Cloitre, Apr 06 2003: (Start)
Iterated floor function: a(n) = floor(sqrt(2)*floor(sqrt(2)*n)).
a(n) = 2*n - 1 - A059648(n). (End)
MATHEMATICA
Table[Floor[Sqrt[2]*Floor[Sqrt[2]*n]], {n, 1, 100}] (* G. C. Greubel, Aug 16 2018 *)
PROG
(PARI) vector(100, n, floor(sqrt(2)*floor(n*sqrt(2)))) \\ G. C. Greubel, Aug 16 2018
(Magma) [Floor(Sqrt(2)*Floor(Sqrt(2)*n)): n in [1..100]]; // G. C. Greubel, Aug 16 2018
(Python)
from math import isqrt
def A007069(n): return isqrt(isqrt(n**2<<1)**2<<1) # Chai Wah Wu, Aug 29 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Benoit Cloitre, Apr 06 2003
STATUS
approved