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!)
A147850 Parity of the digits sum of Sum_{j = 8*n-7..8*n} prime(j). 2

%I #16 Aug 06 2017 21:38:24

%S 1,0,1,0,1,0,0,1,1,0,0,1,0,1,0,1,1,1,1,1,1,0,1,1,0,1,1,0,0,0,0,1,0,1,

%T 1,1,0,0,0,0,1,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,

%U 1,1,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,0,1,0,1,0,1,0,0,0,0,0,0

%N Parity of the digits sum of Sum_{j = 8*n-7..8*n} prime(j).

%F a(n) = 1 - A147781(n).

%F a(n) = A007953(17982*A127335(8*n-7)) mod 2. - _R. J. Mathar_, Jan 06 2009

%e 2+3+5+7+11+13+17+19 = 1384614 (1+3+8+4+6+1+4) = 27 (1).

%e 23+29+31+37+41+43+47+53 = 5466528 (5+4+6+6+5+2+8) = 36 (0).

%e 461+463+467+479+487+491+499+503 = 69230700 (6+9+2+3+7) = 27 (1).

%e 509+521+523+541+547+557+563+569 = 77862060 (7+7+8+6+2+6) = 36 (0).

%p A127335 := proc(n) add(ithprime(i),i=n..n+7) ; end:

%p A007953 := proc(n) add(i,i=convert(n,base,10)) ; end:

%p A147850 := proc(n) A007953(17982*A127335(8*n-7)) mod 2 ; end:

%p for n from 1 to 200 do printf("%a,",A147850(n)) ; od: # _R. J. Mathar_, Jan 06 2009

%Y Cf. A147781.

%K easy,nonn,base,less

%O 1,1

%A _E.J.P. Vening_, Nov 15 2008

%E More terms from _R. J. Mathar_, Jan 06 2009

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 April 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)