login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A004875
Numbers that are the sum of at most 2 nonzero 8th powers.
2
0, 1, 2, 256, 257, 512, 6561, 6562, 6817, 13122, 65536, 65537, 65792, 72097, 131072, 390625, 390626, 390881, 397186, 456161, 781250, 1679616, 1679617, 1679872, 1686177, 1745152, 2070241, 3359232, 5764801, 5764802, 5765057, 5771362, 5830337
OFFSET
1,3
LINKS
PROG
(PARI) list(lim)=my(v=List(), x8); for(x=0, sqrtnint(lim\=1, 8), x8=x^8; for(y=0, min(sqrtnint(lim-x8, 8), x), listput(v, x8+y^8))); Set(v) \\ Charles R Greathouse IV, Aug 22 2017
(PARI) T=thueinit('z^8+1, 1);
is(n)=#thue(T, n)>0 \\ Charles R Greathouse IV, Aug 23 2017
CROSSREFS
Sequence in context: A070782 A370965 A078167 * A067480 A062077 A190539
KEYWORD
nonn
STATUS
approved