login
a(n) = (A370952(n+1) - A370952(n)) /(2*n+1).
3

%I #16 Apr 17 2024 15:04:15

%S 1,1,-1,1,1,1,-2,2,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,1,1,-1,1,

%T -1,1,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-1,-1,2,-2,2,1,-2,2,-2,2,-2,

%U 2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2,-2,2

%N a(n) = (A370952(n+1) - A370952(n)) /(2*n+1).

%H Chai Wah Wu, <a href="/A370975/b370975.txt">Table of n, a(n) for n = 1..10000</a>

%o (Python)

%o from itertools import count, islice

%o def A370975_gen(): # generator of terms

%o a, aset = 1, {0,1}

%o for p in count(3,2):

%o for b in count(a%p,p):

%o if b not in aset:

%o aset.add(b)

%o yield (b-a)//p

%o a = b

%o break

%o A370095_list = list(islice(A370975_gen(),20)) # _Chai Wah Wu_, Apr 17 2024

%Y Cf. A370952, A372052.

%K sign

%O 1,7

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