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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A022556 Numbers that are a sum of a square and 2 nonnegative cubes. 0
0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 16, 17, 18, 20, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 43, 44, 45, 49, 50, 51, 52, 53, 54, 55, 57, 58, 60, 63, 64, 65, 66, 68, 69, 70, 71, 72, 73, 74 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

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

MAPLE

isA022556 := proc(n)

    local a2, b, c ;

    for b from 0 do

        if b^3 > n then

            return false;

        end if;

        for c from b do

            a2 := n-b^3-c^3 ;

            if a2 < 0 then

                break;

            end if;

            if issqr(a2) then

                return true;

            end if;

        end do:

    end do:

end proc: # R. J. Mathar, Sep 02 2016

CROSSREFS

Sequence in context: A032854 A031992 A023749 * A250482 A172233 A189891

Adjacent sequences:  A022553 A022554 A022555 * A022557 A022558 A022559

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 20 01:17 EST 2018. Contains 299357 sequences. (Running on oeis4.)