login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A373972 a(n) = 1 if n can be represented as a sum of 2 nonnegative cubes, otherwise 0. 4
1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
Differs from A025446 first at n=1729, where A025446(1729) = 2, while a(1729) = 1.
LINKS
FORMULA
a(n) = signum(A025446(n)) = [A025446(n) > 0], where [ ] is the Iverson bracket.
a(n) >= A373971(n).
PROG
(PARI) A373972(n) = if(0==n, 1, my(L=sqrtnint(n-1, 3)+1, U=sqrtnint(4*n, 3)); fordiv(n, m, if(L<=m && m<=U, my(ell=(m^2-n/m)/3); if(denominator(ell)==1 && issquare(m^2-4*ell), return(1)))); 0); \\ After Charles R Greathouse IV's Apr 16 2013 program in A004999.
CROSSREFS
Characteristic function of A004999.
Sequence in context: A179830 A266216 A025446 * A266300 A266605 A016421
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 24 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 29 20:04 EDT 2024. Contains 374734 sequences. (Running on oeis4.)