login
First differences of A337486.
2

%I #14 Apr 11 2024 15:55:29

%S 5,4,2,2,4,2,2,4,2,2,4,2,2,4,2,1,1,4,2,2,4,2,6,2,2,2,6,4,2,2,4,2,1,1,

%T 1,3,1,1,4,2,4,1,3,2,2,1,3,2,2,4,2,2,1,1,6,4,1,1,2,4,2,2,3,1,2,1,1,4,

%U 1,1,3,3,2,4,2,4,4,2,2,4,2,2,4,2,2,2,6

%N First differences of A337486.

%H Amiram Eldar, <a href="/A370969/b370969.txt">Table of n, a(n) for n = 1..10000</a>

%o (Python)

%o from itertools import count, islice

%o def A370969_gen(): # generator of terms

%o c, m = 1, 1

%o for n in count(2):

%o a, b = divmod(c,n)

%o if not b:

%o yield n-m

%o c, m = a, n

%o else:

%o c *= n

%o A370969_list = list(islice(A370969_gen(),30)) # _Chai Wah Wu_, Apr 11 2024

%Y Cf. A008336, A337486.

%K nonn

%O 1,1

%A _N. J. A. Sloane_, Apr 11 2024