login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A341902 Least k > 1 such that (n^3+k)/(n+k) is an integer. 2

%I #20 Jun 04 2021 22:09:49

%S 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,

%T 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,

%U 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

%N Least k > 1 such that (n^3+k)/(n+k) is an integer.

%H Seiichi Manyama, <a href="/A341902/b341902.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) <= n-2 for all n > 3.

%t a[n_] := Module[{k = 2}, While[! Divisible[n^3 + k, n + k], k++]; k]; Array[a, 100, 0] (* _Amiram Eldar_, Jun 04 2021 *)

%o (PARI) a(n) = my(k=2); while((n^3+k)%(n+k)!=0, k++); k;

%Y Cf. A301941, A341889.

%K nonn

%O 0,1

%A _Seiichi Manyama_, Jun 04 2021

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 18 14:27 EDT 2024. Contains 374387 sequences. (Running on oeis4.)