login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A022551 Numbers that are the sum of 2 squares and a nonnegative cube. 5
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

Table of n, a(n) for n=1..57.

Index entries for sequences related to sums of squares

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

CROSSREFS

Sequence in context: A037474 A292638 A000378 * A172251 A286997 A187396

Adjacent sequences:  A022548 A022549 A022550 * A022552 A022553 A022554

KEYWORD

nonn

AUTHOR

N. J. A. Sloane.

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified February 17 14:12 EST 2018. Contains 299296 sequences. (Running on oeis4.)