OFFSET
0,7
COMMENTS
a(n) is also the total number of ones in the first n rows of A347579, n >= 1.
MATHEMATICA
Accumulate@Table[Length@Select[Select[IntegerPartitions@n, DuplicateFreeQ], Differences@MinMax@#=={Length@#}&], {n, 60}] (* Giorgos Kalogeropoulos, Sep 12 2021 *)
PROG
(Python)
from math import isqrt
def A347737(n): return (r:=isqrt((n+1<<3)+1)-1>>1)*(6*n+4-r*(r+3))//6-((t:=isqrt(m:=n>>1))+(s:=isqrt(n)))*(t-s)-(sum(n//k for k in range(1, s+1))-sum(m//k for k in range(1, t+1))<<1) # Chai Wah Wu, Jun 07 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Sep 11 2021
STATUS
approved
