OFFSET
1,34
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
MATHEMATICA
PROG
(Magma)
A023533:= func< n | Binomial(Floor((6*n-1)^(1/3)) +2, 3) ne n select 0 else 1 >;
A023532:= func< n | IsSquare(8*n+9) select 0 else 1 >;
[A025075(n): n in [1..130]]; // G. C. Greubel, Aug 02 2022
(SageMath)
@CachedFunction
def A023533(n): return 0 if (binomial( floor( (6*n-1)^(1/3) ) +2, 3) != n) else 1
def A023532(n): return 0 if is_square(8*n+9) else 1
[A025075(n) for n in (1..130)] # G. C. Greubel, Aug 02 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved