OFFSET
1,1
COMMENTS
Although it is easy to produce many terms of this sequence, it is nontrivial to check efficiently whether a very large number is of this form.
EXAMPLE
The sequence starts with 1^7 + 1^8, 2^7 + 1^8, 1^7 + 2^8, 2^7 + 2^8, 3^7 + 1^8, 3^7 + 2^8, 1^7 + 3^8, 2^7 + 3^8, 3^7 + 3^8, 4^7 + 1^8, 4^7 + 2^8, 4^7 + 3^8, 1, ...
MATHEMATICA
With[{nn=40}, Take[Union[First[#]^7 + Last[#]^8&/@Tuples[Range[nn], 2]], nn]]
PROG
(PARI) is(n, k=7, m=8)=for(b=1, sqrtnint(n-1, m), ispower(n-b^m, n)&&return(b)) \\ Returns b > 0 if n is in the sequence, else 0.
A303377_vec(L=10^7, k=7, m=8, S=List())={for(a=1, sqrtnint(L-1, m), for(b=1, sqrtnint(L-a^m, k), listput(S, a^m+b^k))); Set(S)} \\ all terms up to limit L
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, May 04 2018
STATUS
approved
