OFFSET
1,2
COMMENTS
For odd n, a(n) is even.
If n = p^j where p is a prime >= 5, then a(n) = 0 (see link for proof). - Robert Israel, Jan 16 2025
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
MATHEMATICA
A379954[n_] := Catch[Do[If[PowerMod[k*n, 3, # + k^3] == 0, Throw[k]], {k, n^2 - 1}] & [n^3]; 0];
Array[A379954, 100] (* Paolo Xausa, Jan 19 2025 *)
PROG
(PARI) A379954(n) = { for(k=1, n^2, if(!(((n*k)^3)%(k^3+n^3)), return(k))); (0); };
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Antti Karttunen, Jan 16 2025
STATUS
approved