login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A178562 First differences of A178344. 2

%I

%S 1,2,1,2,1,1,1,0,1,1,1,1,1,1,1,-2,1,1,1,1,1,1,1,-1,1,1,1,1,1,1,1,-10,

%T 1,1,1,1,1,1,1,-1,1,1,1,1,1,1,1,-3,1,1,1,1,1,1,1,-1,1,1,1,1,1,1,1,-18,

%U 1,1,1,1,1,1,1,-1,1,1,1,1,1,1,1,-3,1,1,1,1,1,1,1,-1,1,1,1,1,1,1,1,-11,1,1,1

%N First differences of A178344.

%H Antti Karttunen, <a href="/A178562/b178562.txt">Table of n, a(n) for n = 0..65537</a>

%F a(n) = A178344(n+1) - A178344(n).

%o (PARI)

%o A178344(n) = if(!n,1,my(i=1, s=0); while(n, s+=prime(i)^(n%2); n >>= 1; i++); (s));

%o A178562(n) = (A178344(n+1)-A178344(n)); \\ _Antti Karttunen_, Sep 29 2018

%K sign,less

%O 0,2

%A _Juri-Stepan Gerasimov_, May 29 2010

%E Two terms corrected by _R. J. Mathar_, May 31 2010

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 9 01:35 EDT 2020. Contains 336310 sequences. (Running on oeis4.)