login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A379954
Smallest positive k such that (n*k)^3/(n^3+k^3) is an integer, or 0 if no such k exists.
0
0, 2, 6, 4, 0, 3, 0, 8, 18, 10, 0, 6, 0, 14, 30, 16, 0, 9, 0, 20, 42, 22, 0, 12, 0, 26, 54, 28, 0, 15, 0, 32, 66, 34, 0, 18, 0, 38, 78, 40, 0, 14, 0, 44, 90, 46, 0, 24, 0, 50, 102, 52, 0, 27, 0, 56, 114, 58, 0, 30, 0, 62, 126, 64, 260, 33, 0, 68, 138, 70, 0, 36, 0, 74, 150, 76, 0, 39, 0, 80, 162, 82, 0, 28, 0, 86
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
Robert Israel, Proof of comment (which applies to A119612, A379953 and A379954)
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
Sequence in context: A354375 A077750 A332253 * A247493 A076393 A379953
KEYWORD
nonn,new
AUTHOR
Antti Karttunen, Jan 16 2025
STATUS
approved