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

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A022551 Numbers that are the sum of 2 squares and a nonnegative cube. 7
0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 56, 57, 58, 59, 60, 61, 62 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
Jean-François Alcover, Table of n, a(n) for n = 1..943
MAPLE
isA022551 := proc(n)
local a, b, c ;
for c from 0 do
if c^3 > n then
return false;
end if;
for a from 0 do
b2 := n-c^3-a^2 ;
if b2 < a^2 then
break;
end if;
if issqr(b2) then
return true;
end if;
end do:
end do:
end proc: # R. J. Mathar, Sep 02 2016
MATHEMATICA
max = 1000;
Table[x^2 + y^2 + z^3, {x, 0, Sqrt[max]}, {y, x, Sqrt[max - x^2]}, {z, 0, (max - x^2 - y^2)^(1/3)}] // Flatten // Union // Select[#, # <= max&]& (* Jean-François Alcover, Mar 23 2020 *)
CROSSREFS
Complement of A022552.
Sequence in context: A292638 A000378 A335513 * A172251 A286997 A187396
KEYWORD
nonn
AUTHOR
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 December 6 01:58 EST 2023. Contains 367594 sequences. (Running on oeis4.)