OFFSET
1,1
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..5000
MAPLE
isA228946 := proc (n) local k; for k to n-1 do if issqr(n^3-k^3) then return true end if end do; return false end proc; for n from 1 to 400 do if isA228946(n)then print(n): end if: end do: # Nathaniel Johnston, Oct 07 2013
MATHEMATICA
k3sQ[n_]:=Count[n^3-Range[n-1]^3, _?(IntegerQ[Sqrt[#]]&)]>0; Select[ Range[ 400], k3sQ] (* Harvey P. Dale, May 07 2017 *)
PROG
(PARI) for(n=1, 999, for(k=1, n-1, issquare(n^3-k^3) & !print1(n", ") & break))
(PARI) is(n)=for(k=1, n-1, issquare(n^3-k^3) & return(1))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Oct 05 2013
STATUS
approved