login
a(n) = A068527(2*n).
3

%I #12 Feb 22 2022 14:53:51

%S 0,2,0,3,1,6,4,2,0,7,5,3,1,10,8,6,4,2,0,11,9,7,5,3,1,14,12,10,8,6,4,2,

%T 0,15,13,11,9,7,5,3,1,18,16,14,12,10,8,6,4,2,0,19,17,15,13,11,9,7,5,3,

%U 1,22,20,18,16,14,12,10,8,6,4,2,0,23,21,19,17,15

%N a(n) = A068527(2*n).

%t a[n_] := Ceiling[Sqrt[2*n]]^2 - 2*n; Array[a, 100, 0] (* _Amiram Eldar_, Feb 22 2022 *)

%o (Python)

%o from math import isqrt

%o def A350962(n): return 0 if n == 0 else (isqrt(2*n-1)+1)**2-2*n # _Chai Wah Wu_, Feb 22 2022

%Y Cf. A068527, A348596.

%K nonn

%O 0,2

%A _N. J. A. Sloane_, Feb 22 2022