OFFSET
1,138
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
MATHEMATICA
b[j_]:= b[j]= Sum[KroneckerDelta[j, Binomial[m+2, 3]], {m, 0, 15}];
Table[A025125[n], {n, 130}] (* G. C. Greubel, Sep 14 2022 *)
PROG
(Magma)
A023533:= func< n | Binomial(Floor((6*n-1)^(1/3)) +2, 3) ne n select 0 else 1 >;
[A025125(n): n in [1..130]]; // G. C. Greubel, Sep 14 2022
(SageMath)
@CachedFunction
def b(j): return sum(bool(j==binomial(m+2, 3)) for m in (0..15))
@CachedFunction
def A025125(n): return sum(b(n-j+1)*b(j+1) for j in (((n+2)//2)..n))
[A025125(n) for n in (1..130)] # G. C. Greubel, Sep 14 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved