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”).

A341902
Least k > 1 such that (n^3+k)/(n+k) is an integer.
2
2, 2, 4, 3, 2, 3, 4, 5, 4, 3, 5, 4, 10, 8, 7, 5, 4, 7, 16, 5, 8, 3, 11, 10, 6, 5, 4, 9, 8, 6, 28, 9, 12, 11, 8, 5, 6, 20, 19, 9, 12, 7, 40, 13, 11, 10, 23, 22, 8, 7, 20, 9, 16, 19, 12, 5, 4, 19, 29, 28, 58, 32, 31, 9, 6, 13, 12, 21, 24, 15, 35, 9, 70, 38, 37, 20, 8, 7, 13, 17, 10, 9, 41, 40, 18, 17, 16, 29, 28, 10, 15, 13, 32
OFFSET
0,1
LINKS
FORMULA
a(n) <= n-2 for all n > 3.
MATHEMATICA
a[n_] := Module[{k = 2}, While[! Divisible[n^3 + k, n + k], k++]; k]; Array[a, 100, 0] (* Amiram Eldar, Jun 04 2021 *)
PROG
(PARI) a(n) = my(k=2); while((n^3+k)%(n+k)!=0, k++); k;
CROSSREFS
Sequence in context: A332887 A306323 A317015 * A175681 A161003 A152028
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 04 2021
STATUS
approved