STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(Python)
from math import comb, isqrt
def A004736(n): return comb((m:=isqrt(k:=n<<1))+(k>m*(m+1))+1, 2)+1-n # Chai Wah Wu, Nov 08 2024
approved
editing
reviewed
approved
proposed
reviewed
editing
proposed
Cf. A128174 (parity).
approved
editing
proposed
approved
editing
proposed