login
a(n) = [(n + 1)/(1 - 1/r)] - [n - n/r] where r = sqrt(2) and [] denotes the floor function.
0

%I #4 Aug 31 2022 13:30:36

%S 3,6,10,13,16,19,22,25,28,32,35,37,41,44,47,50,54,57,59,63,66,69,72,

%T 75,78,81,85,88,91,94,97,100,103,107,110,112,116,119,122,125,128,131,

%U 134,138,141,144,147,150,153,156,160,163,165,169,172,175,178,182,185

%N a(n) = [(n + 1)/(1 - 1/r)] - [n - n/r] where r = sqrt(2) and [] denotes the floor function.

%F a(n) = [(n + 1)/(1 - 1/r) - [n - n/r]] with r and [] as in the name.

%p a := n -> floor((n + 1)/(1 - 1/r)) - floor(n - n/r): seq(a(n), n = 0..58);

%Y Cf. A285684.

%K nonn

%O 0,1

%A _Peter Luschny_, Aug 31 2022