0,3

Table of n, a(n) for n=0..76.

a(n) = (ceiling(sqrt(2*n + 1)))^2 - (2*n + 1).

(Python)

from math import isqrt

def A348596(n): return (isqrt(2*n)+1)**2-2*n-1 # Chai Wah Wu, Feb 22 2022

Cf. A068527, A046092 (position of 0's), A056220 (position of 1's), A350962.

Sequence in context: A136715 A077116 A249507 * A135730 A188595 A144102

Adjacent sequences: A348593 A348594 A348595 * A348597 A348598 A348599

nonn,easy

Ryan Jean, Feb 22 2022

Edited by N. J. A. Sloane, Feb 22 2022

approved